A new way of building twig templates in a cleaner, modular way.
{# _atoms/my-atom.twig #}
<div>
<h1>{{ heading }}</h1>
{{ before }}
{{ children }}
</div>
{# _atoms/another.twig #}
<p>Nullam quis risus eget urna mollis ornare vel eu leo.</p>
{# index.twig #}
{% set cardName = 'example' %}
{% set before %}
{% x:[cardName ~ '-card'] %}
{% endset %}
{% x:my-atom {
heading: "Hello world!",
before,
} %}
<p>Lorem ipsum dolor amet</p>
{% x:another %}
{% endx:my-atom %}
Installation Instructions
To install this plugin, copy the command above to your terminal.
Reviews
This plugin doesn't have any reviews.
Active Installs
117
License
MIT
Last release
March 27, 2024
Activity (30 days)
0
Closed Issues
0
Open Issues
0
Merged PRs
0
Open PRs