summaryrefslogtreecommitdiff
path: root/src/templating/test2
diff options
context:
space:
mode:
authorChristian Grothoff <christian@grothoff.org>2022-08-16 13:56:04 +0200
committerChristian Grothoff <christian@grothoff.org>2022-08-16 13:57:26 +0200
commitd6f12190c0d953dd3090153a45ecdd10f01cd9c3 (patch)
tree722a7e55f34c6b457cad213464ca8a9372044db3 /src/templating/test2
parent1e2fdea5a977a9fdbb7bcc0632d9fb1c8ef82987 (diff)
downloadexchange-d6f12190c0d953dd3090153a45ecdd10f01cd9c3.tar.gz
exchange-d6f12190c0d953dd3090153a45ecdd10f01cd9c3.tar.bz2
exchange-d6f12190c0d953dd3090153a45ecdd10f01cd9c3.zip
-move templating library into exchange.git
Diffstat (limited to 'src/templating/test2')
-rw-r--r--src/templating/test2/.gitignore2
-rw-r--r--src/templating/test2/json9
-rw-r--r--src/templating/test2/must17
-rw-r--r--src/templating/test2/resu.ref22
4 files changed, 50 insertions, 0 deletions
diff --git a/src/templating/test2/.gitignore b/src/templating/test2/.gitignore
new file mode 100644
index 000000000..4d897daa0
--- /dev/null
+++ b/src/templating/test2/.gitignore
@@ -0,0 +1,2 @@
+resu.last
+vg.last
diff --git a/src/templating/test2/json b/src/templating/test2/json
new file mode 100644
index 000000000..8c668b3b1
--- /dev/null
+++ b/src/templating/test2/json
@@ -0,0 +1,9 @@
+{
+ "header": "Colors",
+ "items": [
+ {"name": "red", "first": true, "url": "#Red"},
+ {"name": "green", "link": true, "url": "#Green"},
+ {"name": "blue", "link": true, "url": "#Blue"}
+ ],
+ "empty": false
+}
diff --git a/src/templating/test2/must b/src/templating/test2/must
new file mode 100644
index 000000000..aa6da7077
--- /dev/null
+++ b/src/templating/test2/must
@@ -0,0 +1,17 @@
+<h1>{{header}}</h1>
+{{#bug}}
+{{/bug}}
+
+{{#items}}
+ {{#first}}
+ <li><strong>{{name}}</strong></li>
+ {{/first}}
+ {{#link}}
+ <li><a href="{{url}}">{{name}}</a></li>
+ {{/link}}
+{{/items}}
+
+{{#empty}}
+ <p>The list is empty.</p>
+{{/empty}}
+
diff --git a/src/templating/test2/resu.ref b/src/templating/test2/resu.ref
new file mode 100644
index 000000000..67d1f547d
--- /dev/null
+++ b/src/templating/test2/resu.ref
@@ -0,0 +1,22 @@
+<h1>Colors</h1>
+
+
+
+
+ <li><strong>red</strong></li>
+
+
+
+
+
+ <li><a href="#Green">green</a></li>
+
+
+
+
+ <li><a href="#Blue">blue</a></li>
+
+
+
+
+