summaryrefslogtreecommitdiffstats
path: root/vendor/handlebars-3.5.5/examples/error
diff options
context:
space:
mode:
authorDaniel Baumann <daniel.baumann@progress-linux.org>2024-05-04 12:41:35 +0000
committerDaniel Baumann <daniel.baumann@progress-linux.org>2024-05-04 12:41:35 +0000
commit7e5d7eea9c580ef4b41a765bde624af431942b96 (patch)
tree2c0d9ca12878fc4525650aa4e54d77a81a07cc09 /vendor/handlebars-3.5.5/examples/error
parentAdding debian version 1.70.0+dfsg1-9. (diff)
downloadrustc-7e5d7eea9c580ef4b41a765bde624af431942b96.tar.xz
rustc-7e5d7eea9c580ef4b41a765bde624af431942b96.zip
Merging upstream version 1.70.0+dfsg2.
Signed-off-by: Daniel Baumann <daniel.baumann@progress-linux.org>
Diffstat (limited to 'vendor/handlebars-3.5.5/examples/error')
-rw-r--r--vendor/handlebars-3.5.5/examples/error/error.hbs21
-rw-r--r--vendor/handlebars-3.5.5/examples/error/template.hbs19
2 files changed, 40 insertions, 0 deletions
diff --git a/vendor/handlebars-3.5.5/examples/error/error.hbs b/vendor/handlebars-3.5.5/examples/error/error.hbs
new file mode 100644
index 000000000..89537e71e
--- /dev/null
+++ b/vendor/handlebars-3.5.5/examples/error/error.hbs
@@ -0,0 +1,21 @@
+{{! this is an invalid template }}
+
+<html>
+ <head>
+ <title>中超联赛 {{year}}</title>
+ </head>
+ <body>
+ <h1>CSL {{year}}</h1>
+ <ul>
+ {{#each teams as |t| ~}}
+ <li class="{{ranking_label true ../teams}}">
+ {{~log @index~}}
+ <b>{{t.name}}</b>: {{format t.pts ~}}
+ </li>
+ {{! mismatched helper close tag }}
+ {{/arch~}}
+ </ul>
+
+ <p>Rendered by Handlebars from {{engine}} data.</p>
+ </body>
+</html>
diff --git a/vendor/handlebars-3.5.5/examples/error/template.hbs b/vendor/handlebars-3.5.5/examples/error/template.hbs
new file mode 100644
index 000000000..eefc5388a
--- /dev/null
+++ b/vendor/handlebars-3.5.5/examples/error/template.hbs
@@ -0,0 +1,19 @@
+<html>
+ <head>
+ <title>中超联赛 {{year}}</title>
+ </head>
+ <body>
+ <h1>CSL {{year}}</h1>
+ <ul>
+ {{#each teams as |t| ~}}
+ {{! ranking_label will produce a render error when first parameter is not a number }}
+ <li class="{{ranking_label true ../teams}}">
+ {{~log @index~}}
+ <b>{{t.name}}</b>: {{format t.pts ~}}
+ </li>
+ {{/each~}}
+ </ul>
+
+ <p>Rendered by Handlebars from {{engine}} data.</p>
+ </body>
+</html>