aboutsummaryrefslogtreecommitdiff
path: root/lib/mstch/test/data/complex.mustache
diff options
context:
space:
mode:
authorMistivia <i@mistivia.com>2025-01-16 15:43:04 +0800
committerMistivia <i@mistivia.com>2025-01-16 15:53:58 +0800
commit8689a7c78c50676ea739f52fbcee9f091709f5c0 (patch)
treebbb72c68e5e1753f751133941a402caa43e29a16 /lib/mstch/test/data/complex.mustache
parent00afb767ae37488d99f78363d031b898b1932354 (diff)
add mstch
Diffstat (limited to 'lib/mstch/test/data/complex.mustache')
-rw-r--r--lib/mstch/test/data/complex.mustache16
1 files changed, 16 insertions, 0 deletions
diff --git a/lib/mstch/test/data/complex.mustache b/lib/mstch/test/data/complex.mustache
new file mode 100644
index 0000000..869a4f0
--- /dev/null
+++ b/lib/mstch/test/data/complex.mustache
@@ -0,0 +1,16 @@
+<h1>{{header}}</h1>
+{{#list}}
+ <ul>
+ {{#item}}
+ {{#current}}
+ <li><strong>{{name}}</strong></li>
+ {{/current}}
+ {{#link}}
+ <li><a href="{{url}}">{{name}}</a></li>
+ {{/link}}
+ {{/item}}
+ </ul>
+{{/list}}
+{{#empty}}
+ <p>The list is empty.</p>
+{{/empty}}