diff options
author | Christian Grothoff <christian@grothoff.org> | 2020-07-26 15:03:34 +0200 |
---|---|---|
committer | Christian Grothoff <christian@grothoff.org> | 2020-07-26 15:03:34 +0200 |
commit | cb400751c159fc1fdfa39bc14960da3dd749e637 (patch) | |
tree | 11de639a89e36affdcb1087188a86d9f4b2e7089 /src/mustach/test2 | |
parent | 7d2465146e6dd1f50d6a8f5121edfa667f1cae84 (diff) | |
download | merchant-cb400751c159fc1fdfa39bc14960da3dd749e637.tar.gz merchant-cb400751c159fc1fdfa39bc14960da3dd749e637.tar.bz2 merchant-cb400751c159fc1fdfa39bc14960da3dd749e637.zip |
vendoring Mustach
Diffstat (limited to 'src/mustach/test2')
-rw-r--r-- | src/mustach/test2/.gitignore | 2 | ||||
-rw-r--r-- | src/mustach/test2/json | 9 | ||||
-rw-r--r-- | src/mustach/test2/must | 17 | ||||
-rw-r--r-- | src/mustach/test2/resu.ref | 22 | ||||
-rw-r--r-- | src/mustach/test2/vg.ref | 14 |
5 files changed, 64 insertions, 0 deletions
diff --git a/src/mustach/test2/.gitignore b/src/mustach/test2/.gitignore new file mode 100644 index 00000000..4d897daa --- /dev/null +++ b/src/mustach/test2/.gitignore @@ -0,0 +1,2 @@ +resu.last +vg.last diff --git a/src/mustach/test2/json b/src/mustach/test2/json new file mode 100644 index 00000000..8c668b3b --- /dev/null +++ b/src/mustach/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/mustach/test2/must b/src/mustach/test2/must new file mode 100644 index 00000000..aa6da707 --- /dev/null +++ b/src/mustach/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/mustach/test2/resu.ref b/src/mustach/test2/resu.ref new file mode 100644 index 00000000..67d1f547 --- /dev/null +++ b/src/mustach/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> + + + + + diff --git a/src/mustach/test2/vg.ref b/src/mustach/test2/vg.ref new file mode 100644 index 00000000..1218d583 --- /dev/null +++ b/src/mustach/test2/vg.ref @@ -0,0 +1,14 @@ +Memcheck, a memory error detector +Copyright (C) 2002-2017, and GNU GPL'd, by Julian Seward et al. +Using Valgrind-3.14.0 and LibVEX; rerun with -h for copyright info +Command: ../mustach json must + + +HEAP SUMMARY: + in use at exit: 0 bytes in 0 blocks + total heap usage: 62 allocs, 62 frees, 11,187 bytes allocated + +All heap blocks were freed -- no leaks are possible + +For counts of detected and suppressed errors, rerun with: -v +ERROR SUMMARY: 0 errors from 0 contexts (suppressed: 0 from 0) |