zaengle / statamic-templateconventions
Installs: 1
Dependents: 0
Suggesters: 0
Security: 0
Stars: 0
Watchers: 2
Forks: 0
Open Issues: 0
pkg:composer/zaengle/statamic-templateconventions
This package is auto-updated.
Last update: 2025-09-23 02:48:32 UTC
README
This package provides templating conventions for differentiating between partials, components, and fields.
Requirements
- PHP 7.3+
- Statamic v3
Installation
You can install this package via composer using:
composer require zaengle/statamic-templateconventions
The package will automatically register itself.
Usage
Our tags pair nicely with Statamic's {{ partial:{path/to/partial} }}
tag. They allow for more semantic, explicit inclusion of templates.
Each tag accepts a wildcard path to the given template. Any number of params may be passed as part of the tag.
// Component Tag will look in views/components/...
{{ component:{path/to/component} }}
// Field Tag will look in views/fields/...
{{ field:{path/to/field} }}