moved to lambda tests
This commit is contained in:
parent
8ef0950a07
commit
ba8a8bee91
1
.gitignore
vendored
1
.gitignore
vendored
@ -1 +1,2 @@
|
|||||||
.idea
|
.idea
|
||||||
|
build
|
||||||
|
6
test/data/lambda/partial_template.js
Normal file
6
test/data/lambda/partial_template.js
Normal file
@ -0,0 +1,6 @@
|
|||||||
|
({
|
||||||
|
title: function () {
|
||||||
|
return "Welcome";
|
||||||
|
},
|
||||||
|
again: "Goodbye"
|
||||||
|
})
|
2
test/data/lambda/partial_template.mustache
Normal file
2
test/data/lambda/partial_template.mustache
Normal file
@ -0,0 +1,2 @@
|
|||||||
|
<h1>{{title}}</h1>
|
||||||
|
{{>partial}}
|
1
test/data/lambda/partial_template.partial
Normal file
1
test/data/lambda/partial_template.partial
Normal file
@ -0,0 +1 @@
|
|||||||
|
Again, {{again}}!
|
2
test/data/lambda/partial_template.txt
Normal file
2
test/data/lambda/partial_template.txt
Normal file
@ -0,0 +1,2 @@
|
|||||||
|
<h1>Welcome</h1>
|
||||||
|
Again, Goodbye!
|
14
test/data/lambda/partial_view.js
Normal file
14
test/data/lambda/partial_view.js
Normal file
@ -0,0 +1,14 @@
|
|||||||
|
({
|
||||||
|
greeting: function () {
|
||||||
|
return "Welcome";
|
||||||
|
},
|
||||||
|
farewell: function () {
|
||||||
|
return "Fair enough, right?";
|
||||||
|
},
|
||||||
|
name: "Chris",
|
||||||
|
value: 10000,
|
||||||
|
taxed_value: function () {
|
||||||
|
return this.value - (this.value * 0.4);
|
||||||
|
},
|
||||||
|
in_ca: true
|
||||||
|
})
|
3
test/data/lambda/partial_view.mustache
Normal file
3
test/data/lambda/partial_view.mustache
Normal file
@ -0,0 +1,3 @@
|
|||||||
|
<h1>{{greeting}}</h1>
|
||||||
|
{{>partial}}
|
||||||
|
<h3>{{farewell}}</h3>
|
5
test/data/lambda/partial_view.partial
Normal file
5
test/data/lambda/partial_view.partial
Normal file
@ -0,0 +1,5 @@
|
|||||||
|
Hello {{name}}
|
||||||
|
You have just won ${{value}}!
|
||||||
|
{{#in_ca}}
|
||||||
|
Well, ${{ taxed_value }}, after taxes.
|
||||||
|
{{/in_ca}}
|
5
test/data/lambda/partial_view.txt
Normal file
5
test/data/lambda/partial_view.txt
Normal file
@ -0,0 +1,5 @@
|
|||||||
|
<h1>Welcome</h1>
|
||||||
|
Hello Chris
|
||||||
|
You have just won $10000!
|
||||||
|
Well, $6000, after taxes.
|
||||||
|
<h3>Fair enough, right?</h3>
|
14
test/data/lambda/partial_whitespace.js
Normal file
14
test/data/lambda/partial_whitespace.js
Normal file
@ -0,0 +1,14 @@
|
|||||||
|
({
|
||||||
|
greeting: function () {
|
||||||
|
return "Welcome";
|
||||||
|
},
|
||||||
|
farewell: function () {
|
||||||
|
return "Fair enough, right?";
|
||||||
|
},
|
||||||
|
name: "Chris",
|
||||||
|
value: 10000,
|
||||||
|
taxed_value: function () {
|
||||||
|
return this.value - (this.value * 0.4);
|
||||||
|
},
|
||||||
|
in_ca: true
|
||||||
|
})
|
3
test/data/lambda/partial_whitespace.mustache
Normal file
3
test/data/lambda/partial_whitespace.mustache
Normal file
@ -0,0 +1,3 @@
|
|||||||
|
<h1>{{ greeting }}</h1>
|
||||||
|
{{> partial }}
|
||||||
|
<h3>{{ farewell }}</h3>
|
5
test/data/lambda/partial_whitespace.partial
Normal file
5
test/data/lambda/partial_whitespace.partial
Normal file
@ -0,0 +1,5 @@
|
|||||||
|
Hello {{ name}}
|
||||||
|
You have just won ${{value }}!
|
||||||
|
{{# in_ca }}
|
||||||
|
Well, ${{ taxed_value }}, after taxes.
|
||||||
|
{{/ in_ca }}
|
5
test/data/lambda/partial_whitespace.txt
Normal file
5
test/data/lambda/partial_whitespace.txt
Normal file
@ -0,0 +1,5 @@
|
|||||||
|
<h1>Welcome</h1>
|
||||||
|
Hello Chris
|
||||||
|
You have just won $10000!
|
||||||
|
Well, $6000, after taxes.
|
||||||
|
<h3>Fair enough, right?</h3>
|
7
test/data/lambda/section_functions_in_partials.js
Normal file
7
test/data/lambda/section_functions_in_partials.js
Normal file
@ -0,0 +1,7 @@
|
|||||||
|
({
|
||||||
|
bold: function(){
|
||||||
|
return function(text, render) {
|
||||||
|
return "<b>" + render(text) + "</b>";
|
||||||
|
}
|
||||||
|
}
|
||||||
|
})
|
3
test/data/lambda/section_functions_in_partials.mustache
Normal file
3
test/data/lambda/section_functions_in_partials.mustache
Normal file
@ -0,0 +1,3 @@
|
|||||||
|
{{> partial}}
|
||||||
|
|
||||||
|
<p>some more text</p>
|
1
test/data/lambda/section_functions_in_partials.partial
Normal file
1
test/data/lambda/section_functions_in_partials.partial
Normal file
@ -0,0 +1 @@
|
|||||||
|
{{#bold}}Hello There{{/bold}}
|
3
test/data/lambda/section_functions_in_partials.txt
Normal file
3
test/data/lambda/section_functions_in_partials.txt
Normal file
@ -0,0 +1,3 @@
|
|||||||
|
<b>Hello There</b>
|
||||||
|
|
||||||
|
<p>some more text</p>
|
Loading…
x
Reference in New Issue
Block a user