Plugin screenshot thumbnail 1/2
Plugin screenshot thumbnail 2/2

The Template 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
Installation Instructions

To install this plugin, copy the command above to your terminal.

Reviews

This plugin doesn't have any reviews.

Active Installs
50
Version
5.0.4
License
MIT
Compatibility
Craft 4, Craft 5
Last release
June 24, 2024
Activity (30 days)
0
Closed Issues
0
Open Issues
0
Merged PRs
4
Open PRs