| @@ -1 +1 @@ | |||||
| {{.}} | |||||
| {{.}} | |||||
| @@ -1,5 +1,3 @@ | |||||
| Here is some stuff! | Here is some stuff! | ||||
| {{%IMPLICIT-ITERATOR}} | {{%IMPLICIT-ITERATOR}} | ||||
| {{#numbers}} | |||||
| {{>partial}} | |||||
| {{/numbers}} | |||||
| {{#numbers}}{{>partial}}{{/numbers}} | |||||
| @@ -1,4 +1,5 @@ | |||||
| Here is some stuff! | Here is some stuff! | ||||
| 1 | 1 | ||||
| 2 | 2 | ||||
| 3 | 3 | ||||
| @@ -1 +1 @@ | |||||
| {{i}} | |||||
| {{i}} | |||||
| @@ -1,4 +1,3 @@ | |||||
| Here is some stuff! | Here is some stuff! | ||||
| {{#numbers}} | |||||
| {{>partial}} | |||||
| {{/numbers}} | |||||
| {{#numbers}}{{>partial}} | |||||
| {{/numbers}} | |||||
| @@ -3,3 +3,4 @@ Here is some stuff! | |||||
| 2 | 2 | ||||
| 3 | 3 | ||||
| 4 | 4 | ||||
| @@ -1,2 +1 @@ | |||||
| {{%IMPLICIT-ITERATOR}} | |||||
| {{#array_of_strings}} {{.}} {{/array_of_strings}} | |||||
| {{%IMPLICIT-ITERATOR}}{{#array_of_strings}}{{.}} {{/array_of_strings}} | |||||
| @@ -1 +1 @@ | |||||
| hello world | |||||
| hello world | |||||
| @@ -1,2 +1 @@ | |||||
| {{%IMPLICIT-ITERATOR iterator=rob}} | |||||
| {{#array_of_strings_options}} {{rob}} {{/array_of_strings_options}} | |||||
| {{%IMPLICIT-ITERATOR iterator=rob}}{{#array_of_strings_options}}{{rob}} {{/array_of_strings_options}} | |||||
| @@ -1 +1 @@ | |||||
| hello world | |||||
| hello world | |||||
| @@ -1,16 +1,8 @@ | |||||
| <h1>{{header}}</h1> | <h1>{{header}}</h1> | ||||
| {{#list}} | {{#list}} | ||||
| <ul> | |||||
| {{#item}} | |||||
| {{#current}} | |||||
| <li><strong>{{name}}</strong></li> | |||||
| {{/current}} | |||||
| {{#link}} | |||||
| <li><a href="{{url}}">{{name}}</a></li> | |||||
| {{/link}} | |||||
| {{/item}} | |||||
| </ul> | |||||
| <ul>{{#item}} | |||||
| {{#current}}<li><strong>{{name}}</strong></li>{{/current}} | |||||
| {{#link}}<li><a href="{{url}}">{{name}}</a></li>{{/link}} | |||||
| {{/item}}</ul> | |||||
| {{/list}} | {{/list}} | ||||
| {{#empty}} | |||||
| <p>The list is empty.</p> | |||||
| {{/empty}} | |||||
| {{#empty}}<p>The list is empty.</p>{{/empty}} | |||||
| @@ -1,6 +1,13 @@ | |||||
| <h1>Colors</h1> | <h1>Colors</h1> | ||||
| <ul> | |||||
| <li><strong>red</strong></li> | |||||
| <ul> | |||||
| <li><strong>red</strong></li> | |||||
| <li><a href="#Green">green</a></li> | <li><a href="#Green">green</a></li> | ||||
| <li><a href="#Blue">blue</a></li> | <li><a href="#Blue">blue</a></li> | ||||
| </ul> | |||||
| </ul> | |||||
| @@ -1,5 +1,7 @@ | |||||
| * | * | ||||
| It worked the first time. | It worked the first time. | ||||
| * And it worked the second time. | * And it worked the second time. | ||||
| * Then, surprisingly, it worked the third time. | * Then, surprisingly, it worked the third time. | ||||
| * Fourth time also fine!. | |||||
| * Fourth time also fine!. | |||||
| @@ -1,2 +1,2 @@ | |||||
| hey {{foo}} | hey {{foo}} | ||||
| {{>partial}} | |||||
| {{>partial}} | |||||
| @@ -1 +1 @@ | |||||
| <html><head></head><body><h1>Test</h1></body></html> | |||||
| <html><head></head><body><h1>Test</h1></body></html> | |||||
| @@ -1 +0,0 @@ | |||||
| @@ -1 +1,2 @@ | |||||
| No repos :( | No repos :( | ||||
| @@ -2,6 +2,6 @@ | |||||
| {{ description }} | {{ description }} | ||||
| {{#terms}} | {{#terms}} | ||||
| {{name}} | |||||
| {{name}} | |||||
| {{index}} | {{index}} | ||||
| {{/terms}} | |||||
| {{/terms}} | |||||
| @@ -1,6 +1,9 @@ | |||||
| name | name | ||||
| desc | desc | ||||
| t1 | t1 | ||||
| 0 | 0 | ||||
| t2 | t2 | ||||
| 1 | 1 | ||||
| @@ -1,8 +1,8 @@ | |||||
| {{#terms}} | {{#terms}} | ||||
| {{name}} | |||||
| {{name}} | |||||
| {{index}} | {{index}} | ||||
| {{/terms}} | {{/terms}} | ||||
| {{#terms}} | {{#terms}} | ||||
| {{name}} | |||||
| {{name}} | |||||
| {{index}} | {{index}} | ||||
| {{/terms}} | |||||
| {{/terms}} | |||||
| @@ -1,8 +1,13 @@ | |||||
| t1 | t1 | ||||
| 0 | 0 | ||||
| t2 | t2 | ||||
| 1 | 1 | ||||
| t1 | t1 | ||||
| 0 | 0 | ||||
| t2 | t2 | ||||
| 1 | 1 | ||||
| @@ -1,9 +1,8 @@ | |||||
| {{#a_object}} | {{#a_object}} | ||||
| <h1>{{title}}</h1> | |||||
| <h1>{{title}}</h1> | |||||
| <p>{{description}}</p> | <p>{{description}}</p> | ||||
| <ul> | <ul> | ||||
| {{#a_list}} | |||||
| <li>{{label}}</li> | |||||
| {{#a_list}}<li>{{label}}</li> | |||||
| {{/a_list}} | {{/a_list}} | ||||
| </ul> | </ul> | ||||
| {{/a_object}} | |||||
| {{/a_object}} | |||||
| @@ -1,6 +1,8 @@ | |||||
| <h1>this is an object</h1> | <h1>this is an object</h1> | ||||
| <p>one of its attributes is a list</p> | <p>one of its attributes is a list</p> | ||||
| <ul> | <ul> | ||||
| <li>listitem1</li> | <li>listitem1</li> | ||||
| <li>listitem2</li> | <li>listitem2</li> | ||||
| </ul> | |||||
| </ul> | |||||
| @@ -1,3 +1,4 @@ | |||||
| Hello Chris | Hello Chris | ||||
| You have just won $10000! | You have just won $10000! | ||||
| Well, $6000, after taxes. | Well, $6000, after taxes. | ||||
| @@ -1 +1 @@ | |||||
| Welcome, Joe! | |||||
| Welcome, Joe! | |||||
| @@ -1 +1 @@ | |||||
| <h1>Bear > Shark</h1> | |||||
| <h1>Bear > Shark</h1> | |||||
| @@ -1 +1 @@ | |||||
| ERROR: This implementation of mustache doesn't understand the 'I-HAVE-THE-GREATEST-MUSTACHE' pragma | |||||
| ERROR: This mustache implementation doesn't understand the 'I-HAVE-THE-GREATEST-MUSTACHE' pragma | |||||
| @@ -68,7 +68,7 @@ describe "mustache" do | |||||
| } | } | ||||
| JS | JS | ||||
| run_js(runner).should == expect | |||||
| run_js(runner).should == expect + "\n" | |||||
| end | end | ||||
| it "should sendFun the correct html" do | it "should sendFun the correct html" do | ||||
| @@ -86,7 +86,7 @@ describe "mustache" do | |||||
| } | } | ||||
| var template = #{template}; | var template = #{template}; | ||||
| Mustache.to_html(template, #{testname}, null, sendFun); | Mustache.to_html(template, #{testname}, null, sendFun); | ||||
| print(chunks.join("\\n")); | |||||
| print(chunks.join("")); | |||||
| } catch(e) { | } catch(e) { | ||||
| print('ERROR: ' + e.message); | print('ERROR: ' + e.message); | ||||
| } | } | ||||
| @@ -137,7 +137,7 @@ describe "mustache" do | |||||
| } | } | ||||
| } | } | ||||
| Mustache.to_html(template, partial_context, partials, sendFun); | Mustache.to_html(template, partial_context, partials, sendFun); | ||||
| print(chunks.join("\\n")); | |||||
| print(chunks.join("")); | |||||
| } catch(e) { | } catch(e) { | ||||
| print('ERROR: ' + e.message); | print('ERROR: ' + e.message); | ||||
| } | } | ||||