deno.land / x / lume@v2.1.4 / tests / assets / nunjucks / components.njk
123456789101112131415{% comp "Button" %} button without arguments{% endcomp %}
{{ comp.Button({ content: "button content" }) | safe }}{{ comp.icon.User({ content: "this is John", name:"John" }) | safe }}
{% comp "Button", className="my-button" %} button content {% comp "icon.user", name="John" %} this is John {% endcomp %}{% endcomp %}
Version Info