zaengle / craft-conventions
Craft Conventions
Installs: 7 062
Dependents: 0
Suggesters: 0
Security: 0
Stars: 8
Watchers: 3
Forks: 0
Open Issues: 7
Type:craft-plugin
Requires
- php: ^8.2 | ^8.3
- craftcms/cms: ^4.0.1||^5.0.0
Requires (Dev)
- craftcms/ecs: dev-main
- nunomaduro/collision: ^8.1
- pestphp/pest: ^2.34
- phpstan/phpstan: ^1.11
- roave/security-advisories: dev-latest
- symplify/easy-coding-standard: ^10.3
- dev-main
- 5.0.5
- 5.0.4
- 5.0.3
- 5.0.2
- 5.0.1
- 5.0.0
- 5.0.0-beta.1
- 1.1.3
- 1.1.2
- 1.1.1
- 1.1.0
- 1.0.5
- 1.0.4
- 1.0.2
- 1.0.0
- dev-dependabot/npm_and_yarn/vue-3.5.13
- dev-dependabot/composer/symfony/http-client-6.4.15
- dev-dependabot/composer/craftcms/cms-5.4.8
- dev-dependabot/composer/twig/twig-3.14.2
- dev-dependabot/npm_and_yarn/vitepress-1.5.0
- dev-dependabot/composer/symfony/process-7.1.7
- dev-craft-5
- dev-feature/test-harness
This package is auto-updated.
Last update: 2024-12-16 12:10:47 UTC
README
The Conventions plugin helps you maintain a consistent template structure both within and across your Craft CMS projects, by making it easy to define and use twig helper functions that act as improved replacements for Twig's native {% include %}
tag. These functions are designed to help you write cleaner, more consistent templates with less boilerplate.
Turn this:
{% include('_components/blog/card') with { data: myData } only %}
Into this:
{{ component('card/blog', { data: myData }) }}
with just a single line definition in a config file.
Features
- Works out-of-the-box with default options
- Flexible config options
- Easily customisable for advanced use-cases
How to use
Security Vulnerabilities
Please review our security policy on how to report security vulnerabilities.
Conventions Roadmap
- Tests!
- Add generators for scaffolding new patterns
- Styleguide generator intergration 🧐
Brought to you by Zaengle Corp