diff options
Diffstat (limited to 'src/templating/test5')
-rw-r--r-- | src/templating/test5/.gitignore | 2 | ||||
-rw-r--r-- | src/templating/test5/json | 23 | ||||
-rw-r--r-- | src/templating/test5/must | 23 | ||||
-rw-r--r-- | src/templating/test5/must2 | 14 | ||||
-rw-r--r-- | src/templating/test5/must2.mustache | 1 | ||||
-rw-r--r-- | src/templating/test5/must3.mustache | 17 | ||||
-rw-r--r-- | src/templating/test5/resu.ref | 60 | ||||
-rw-r--r-- | src/templating/test5/special | 1 | ||||
-rw-r--r-- | src/templating/test5/special.mustache | 1 |
9 files changed, 142 insertions, 0 deletions
diff --git a/src/templating/test5/.gitignore b/src/templating/test5/.gitignore new file mode 100644 index 000000000..4d897daa0 --- /dev/null +++ b/src/templating/test5/.gitignore @@ -0,0 +1,2 @@ +resu.last +vg.last diff --git a/src/templating/test5/json b/src/templating/test5/json new file mode 100644 index 000000000..5b2e3d83a --- /dev/null +++ b/src/templating/test5/json @@ -0,0 +1,23 @@ +{ + "name": "Chris", + "value": 10000, + "taxed_value": 6000, + "in_ca": true, + "person": false, + "repo": [ + { "name": "resque", "who": [ { "committer": "joe" }, { "reviewer": "avrel" }, { "committer": "william" } ] }, + { "name": "hub", "who": [ { "committer": "jack" }, { "reviewer": "avrel" }, { "committer": "greg" } ] }, + { "name": "rip", "who": [ { "reviewer": "joe" }, { "reviewer": "jack" }, { "committer": "greg" } ] } + ], + "person?": { "name": "Jon" }, + "special": "----{{extra}}----", + "extra": 3.14159, + "#sharp": "#", + "!bang": "!", + "/slash": "/", + "^circ": "^", + "=equal": "=", + ":colon": ":", + ">greater": ">", + "~tilde": "~" +} diff --git a/src/templating/test5/must b/src/templating/test5/must new file mode 100644 index 000000000..44305df24 --- /dev/null +++ b/src/templating/test5/must @@ -0,0 +1,23 @@ +===================================== +from json +{{> special}} +===================================== +not found +{{> notfound}} +===================================== +without extension first +{{> must2 }} +===================================== +last with extension +{{> must3 }} +===================================== +Ensure must3 didn't change specials + +{{#person?}} + Hi {{name}}! +{{/person?}} + +%(%#person?%)% + Hi %(%name%)%! +%(%/person?%)% + diff --git a/src/templating/test5/must2 b/src/templating/test5/must2 new file mode 100644 index 000000000..d4a1d3783 --- /dev/null +++ b/src/templating/test5/must2 @@ -0,0 +1,14 @@ +must2 == BEGIN +Hello {{name}} +You have just won {{value}} dollars! +{{#in_ca}} +Well, {{taxed_value}} dollars, after taxes. +{{/in_ca}} +Shown. +{{#person}} + Never shown! +{{/person}} +{{^person}} + No person +{{/person}} +must2 == END diff --git a/src/templating/test5/must2.mustache b/src/templating/test5/must2.mustache new file mode 100644 index 000000000..33f1ead38 --- /dev/null +++ b/src/templating/test5/must2.mustache @@ -0,0 +1 @@ +must2.mustache ==SHOULD NOT BE SEEN== diff --git a/src/templating/test5/must3.mustache b/src/templating/test5/must3.mustache new file mode 100644 index 000000000..821aaac33 --- /dev/null +++ b/src/templating/test5/must3.mustache @@ -0,0 +1,17 @@ +must3.mustache == BEGIN +{{#repo}} + <b>{{name}}</b> reviewers:{{#who}} {{reviewer}}{{/who}} committers:{{#who}} {{committer}}{{/who}} +{{/repo}} + +{{#person?}} + Hi {{name}}! +{{/person?}} + +{{=%(% %)%=}} +===================================== +%(%! big comment %)% +%(%#repo%)% + <b>%(%name%)%</b> reviewers:%(%#who%)% %(%reviewer%)%%(%/who%)% committers:%(%#who%)% %(%committer%)%%(%/who%)% +%(%/repo%)% +===================================== +must3.mustache == END diff --git a/src/templating/test5/resu.ref b/src/templating/test5/resu.ref new file mode 100644 index 000000000..afc396599 --- /dev/null +++ b/src/templating/test5/resu.ref @@ -0,0 +1,60 @@ +===================================== +from json +----3.14159---- +===================================== +not found + +===================================== +without extension first +must2 == BEGIN +Hello Chris +You have just won 10000 dollars! + +Well, 6000 dollars, after taxes. + +Shown. + + + No person + +must2 == END + +===================================== +last with extension +must3.mustache == BEGIN + + <b>resque</b> reviewers: avrel committers: joe william + + <b>hub</b> reviewers: avrel committers: jack greg + + <b>rip</b> reviewers: joe jack committers: greg + + + + Hi Jon! + + + +===================================== + + + <b>resque</b> reviewers: avrel committers: joe william + + <b>hub</b> reviewers: avrel committers: jack greg + + <b>rip</b> reviewers: joe jack committers: greg + +===================================== +must3.mustache == END + +===================================== +Ensure must3 didn't change specials + + + Hi Jon! + + +%(%#person?%)% + Hi %(%name%)%! +%(%/person?%)% + diff --git a/src/templating/test5/special b/src/templating/test5/special new file mode 100644 index 000000000..02d9975c6 --- /dev/null +++ b/src/templating/test5/special @@ -0,0 +1 @@ +special ==SHOULD NOT BE SEEN== diff --git a/src/templating/test5/special.mustache b/src/templating/test5/special.mustache new file mode 100644 index 000000000..70a771fd6 --- /dev/null +++ b/src/templating/test5/special.mustache @@ -0,0 +1 @@ +special.mustache ==SHOULD NOT BE SEEN== |