moved to lambda tests

This commit is contained in:
Daniel Sipka 2015-04-12 17:12:52 +02:00
parent 8ef0950a07
commit ba8a8bee91
17 changed files with 80 additions and 0 deletions

1
.gitignore vendored
View file

@ -1 +1,2 @@
.idea
build

View file

@ -0,0 +1,6 @@
({
title: function () {
return "Welcome";
},
again: "Goodbye"
})

View file

@ -0,0 +1,2 @@
<h1>{{title}}</h1>
{{>partial}}

View file

@ -0,0 +1 @@
Again, {{again}}!

View file

@ -0,0 +1,2 @@
<h1>Welcome</h1>
Again, Goodbye!

View 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
})

View file

@ -0,0 +1,3 @@
<h1>{{greeting}}</h1>
{{>partial}}
<h3>{{farewell}}</h3>

View file

@ -0,0 +1,5 @@
Hello {{name}}
You have just won ${{value}}!
{{#in_ca}}
Well, ${{ taxed_value }}, after taxes.
{{/in_ca}}

View file

@ -0,0 +1,5 @@
<h1>Welcome</h1>
Hello Chris
You have just won $10000!
Well, $6000, after taxes.
<h3>Fair enough, right?</h3>

View 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
})

View file

@ -0,0 +1,3 @@
<h1>{{ greeting }}</h1>
{{> partial }}
<h3>{{ farewell }}</h3>

View file

@ -0,0 +1,5 @@
Hello {{ name}}
You have just won ${{value }}!
{{# in_ca }}
Well, ${{ taxed_value }}, after taxes.
{{/ in_ca }}

View file

@ -0,0 +1,5 @@
<h1>Welcome</h1>
Hello Chris
You have just won $10000!
Well, $6000, after taxes.
<h3>Fair enough, right?</h3>

View file

@ -0,0 +1,7 @@
({
bold: function(){
return function(text, render) {
return "<b>" + render(text) + "</b>";
}
}
})

View file

@ -0,0 +1,3 @@
{{> partial}}
<p>some more text</p>

View file

@ -0,0 +1 @@
{{#bold}}Hello There{{/bold}}

View file

@ -0,0 +1,3 @@
<b>Hello There</b>
<p>some more text</p>