deno.land / x / lume@v2.1.4 / tests / assets / nunjucks / components.njk

components.njk
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
{% 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 %}
lume

Version Info

Tagged at
7 months ago