Skip to content

Commit

Permalink
forgot to not remove src. need to get rid of it at some point.
Browse files Browse the repository at this point in the history
  • Loading branch information
spullara committed May 12, 2021
1 parent fb9f029 commit b458d48
Show file tree
Hide file tree
Showing 162 changed files with 1,600 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/test/resources/array_of_strings.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
{{%IMPLICIT-ITERATOR}}
{{#array_of_strings}} {{.}} {{/array_of_strings}}
1 change: 1 addition & 0 deletions src/test/resources/array_of_strings.js
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
var array_of_strings = {array_of_strings: ['hello', 'world']};
1 change: 1 addition & 0 deletions src/test/resources/array_of_strings.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
hello world
2 changes: 2 additions & 0 deletions src/test/resources/array_of_strings_options.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
{{%IMPLICIT-ITERATOR iterator=rob}}
{{#array_of_strings_options}} {{rob}} {{/array_of_strings_options}}
1 change: 1 addition & 0 deletions src/test/resources/array_of_strings_options.js
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
var array_of_strings_options = {array_of_strings_options: ['hello', 'world']};
1 change: 1 addition & 0 deletions src/test/resources/array_of_strings_options.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
hello world
6 changes: 6 additions & 0 deletions src/test/resources/array_partial.2.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
Here's a non-sense array of values

{{%IMPLICIT-ITERATOR}}
{{#array}}
{{.}}
{{/array}}
1 change: 1 addition & 0 deletions src/test/resources/array_partial.html
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
{{>partial}}
5 changes: 5 additions & 0 deletions src/test/resources/array_partial.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
var partial_context = {
partial: {
array: ['1', '2', '3', '4']
}
};
8 changes: 8 additions & 0 deletions src/test/resources/array_partial.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
Here's a non-sense array of values


1
2
3
4

2 changes: 2 additions & 0 deletions src/test/resources/brokensimple.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
Hello {{name}}
You have just won ${{value
1 change: 1 addition & 0 deletions src/test/resources/comments.html
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
<h1>{{title}}{{! just something interesting... or not... }}</h1>
5 changes: 5 additions & 0 deletions src/test/resources/comments.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
var comments = {
title: function() {
return "A Comedy of Errors";
}
};
1 change: 1 addition & 0 deletions src/test/resources/comments.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
<h1>A Comedy of Errors</h1>
19 changes: 19 additions & 0 deletions src/test/resources/complex.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
<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}}
{{^empty}}
<p>The list is not empty.</p>
{{/empty}}
19 changes: 19 additions & 0 deletions src/test/resources/complex.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
var complex = {
header: function() {
return "Colors";
},
item: [
{name: "red", current: true, url: "#Red"},
{name: "green", current: false, url: "#Green"},
{name: "blue", current: false, url: "#Blue"}
],
link: function() {
return this["current"] !== true;
},
list: function() {
return this.item.length !== 0;
},
empty: function() {
return this.item.length === 0;
}
};
7 changes: 7 additions & 0 deletions src/test/resources/complex.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
<h1>Colors</h1>
<ul>
<li><strong>red</strong></li>
<li><a href="#Green">green</a></li>
<li><a href="#Blue">blue</a></li>
</ul>
<p>The list is not empty.</p>
7 changes: 7 additions & 0 deletions src/test/resources/deferred.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
<html>
<head><title>{{title}}</title></head>
<body>
{{>deferredpartial}}
{{{deferred}}}
</body>
</html>
7 changes: 7 additions & 0 deletions src/test/resources/deferred.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
<html>
<head><title>Deferred</title></head>
<body>
<div id="1"></div>
<script>document.getElementById("1").innerHTML="I am calculated\n\"later\" and divs\nare written out &lt;\nnow";</script>
</body>
</html>
4 changes: 4 additions & 0 deletions src/test/resources/deferredpartial.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
I am calculated
"later" and divs
are written out <
now
7 changes: 7 additions & 0 deletions src/test/resources/delimiters.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
{{=<% %>=}}*
<% first %>
* <% second %>
<%=| |=%>
* | third |
|={{ }}=|
* {{ fourth }}
6 changes: 6 additions & 0 deletions src/test/resources/delimiters.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
var delimiters = {
first: "It worked the first time.",
second: "And it worked the second time.",
third: "Then, surprisingly, it worked the third time.",
fourth: "Fourth time also fine!."
}
5 changes: 5 additions & 0 deletions src/test/resources/delimiters.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
*
It worked the first time.
* And it worked the second time.
* Then, surprisingly, it worked the third time.
* Fourth time also fine!.
1 change: 1 addition & 0 deletions src/test/resources/empty_partial.2.html
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
yo
2 changes: 2 additions & 0 deletions src/test/resources/empty_partial.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
hey {{foo}}
{{>partial}}
3 changes: 3 additions & 0 deletions src/test/resources/empty_partial.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
var partial_context = {
foo: 1
};
2 changes: 2 additions & 0 deletions src/test/resources/empty_partial.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
hey 1
yo
1 change: 1 addition & 0 deletions src/test/resources/empty_template.html
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
<html><head></head><body><h1>Test</h1></body></html>
1 change: 1 addition & 0 deletions src/test/resources/empty_template.js
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
var empty_template = {};
1 change: 1 addition & 0 deletions src/test/resources/empty_template.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
<html><head></head><body><h1>Test</h1></body></html>
1 change: 1 addition & 0 deletions src/test/resources/error_not_found.html
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
{{foo}}
1 change: 1 addition & 0 deletions src/test/resources/error_not_found.js
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
var error_not_found = {bar: 2};
1 change: 1 addition & 0 deletions src/test/resources/error_not_found.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@

2 changes: 2 additions & 0 deletions src/test/resources/escaped.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
<h1>{{title}}</h1>
But not {{entities}}.
6 changes: 6 additions & 0 deletions src/test/resources/escaped.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
var escaped = {
title: function() {
return "Bear > Shark";
},
entities: "&quot;"
};
2 changes: 2 additions & 0 deletions src/test/resources/escaped.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
<h1>Bear &gt; Shark</h1>
But not &quot;.
2 changes: 2 additions & 0 deletions src/test/resources/explicitlambda.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
<h1>{{_translate}}Hello{{/translate}}</h1>
<h1>{{_translate}}Hola{{/translate}}</h1>
2 changes: 2 additions & 0 deletions src/test/resources/explicitlambda.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
<h1>Hola</h1>
<h1>Hello</h1>
1 change: 1 addition & 0 deletions src/test/resources/higher_order_sections.html
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
{{#bolder}}Hi {{name}}.{{/bolder}}
9 changes: 9 additions & 0 deletions src/test/resources/higher_order_sections.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
var higher_order_sections = {
"name": "Tater",
"helper": "To tinker?",
"bolder": function() {
return function(text, render) {
return "<b>" + render(text) + '</b> ' + this.helper;
}
}
}
1 change: 1 addition & 0 deletions src/test/resources/higher_order_sections.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
<b>Hi Tater.</b> To tinker?
8 changes: 8 additions & 0 deletions src/test/resources/i18n.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
你好 {{name}}
你赚了 ${{value}}!

{{#test}}
{{/test}}
{{#in_ca}}
Well, ${{ taxed_value }}, after taxes.{{fred}}
{{/in_ca}}
4 changes: 4 additions & 0 deletions src/test/resources/i18n.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
你好 Chris
你赚了 $10000!

Well, $6000, after taxes.
Loading

0 comments on commit b458d48

Please sign in to comment.