deno.land / x / lume@v2.1.4 / tests / assets / nunjucks / with-helpers.njk

with-helpers.njk
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
---title: The title---<p>{% upperCase title %}</p><p>{% upperCase "The title" %}</p><p>{% upperCaseAsync title %}</p><p>{% upperCaseAsync "The title" %}</p><p>{% upperCaseBody %}The title{% endupperCaseBody %}</p><p>{% upperCaseBody %}{{ title }}{% endupperCaseBody %}</p><p>{% upperCaseBodyAsync %}The title{% endupperCaseBodyAsync %}</p><p>{% upperCaseBodyAsync %}{{ title }}{% endupperCaseBodyAsync %}</p><div>{{ "hello" | returnAsync }}</div>{% include "partial.njk" %}{% include "./_includes/partial.njk" %}
<strong>{{ "title" | fromPage }}</strong><strong>{{ "title" | fromPageAsync }}</strong><p>{% fromPageTagAsync %}title{% endfromPageTagAsync %}</p>
lume

Version Info

Tagged at
7 months ago