| @@ -2,6 +2,7 @@ | |||||
| ## 0.3.0 (??-??-????) | ## 0.3.0 (??-??-????) | ||||
| * Improved whitespace handling. | |||||
| * Make IMPLICIT ITERATORS a first class feature. | * Make IMPLICIT ITERATORS a first class feature. | ||||
| * Fix Rhino compat. | * Fix Rhino compat. | ||||
| * CommonJS packaging is no longer a special case. | * CommonJS packaging is no longer a special case. | ||||
| @@ -1 +1 @@ | |||||
| {{#array_of_strings}} {{.}} {{/array_of_strings}} | |||||
| {{#array_of_strings}}{{.}} {{/array_of_strings}} | |||||
| @@ -1,2 +1,2 @@ | |||||
| {{%IMPLICIT-ITERATOR iterator=rob}} | {{%IMPLICIT-ITERATOR iterator=rob}} | ||||
| {{#array_of_strings_options}} {{rob}} {{/array_of_strings_options}} | |||||
| {{#array_of_strings_options}}{{rob}} {{/array_of_strings_options}} | |||||
| @@ -1,4 +1,4 @@ | |||||
| Here's a non-sense array of values | Here's a non-sense array of values | ||||
| {{#array}} | {{#array}} | ||||
| {{.}} | |||||
| {{.}} | |||||
| {{/array}} | {{/array}} | ||||
| @@ -1,6 +1,6 @@ | |||||
| Here's a non-sense array of values | Here's a non-sense array of values | ||||
| 1 | |||||
| 2 | |||||
| 3 | |||||
| 4 | |||||
| 1 | |||||
| 2 | |||||
| 3 | |||||
| 4 | |||||
| @@ -2,12 +2,12 @@ | |||||
| {{#list}} | {{#list}} | ||||
| <ul> | <ul> | ||||
| {{#item}} | {{#item}} | ||||
| {{#current}} | |||||
| <li><strong>{{name}}</strong></li> | |||||
| {{/current}} | |||||
| {{#link}} | |||||
| <li><a href="{{url}}">{{name}}</a></li> | |||||
| {{/link}} | |||||
| {{#current}} | |||||
| <li><strong>{{name}}</strong></li> | |||||
| {{/current}} | |||||
| {{#link}} | |||||
| <li><a href="{{url}}">{{name}}</a></li> | |||||
| {{/link}} | |||||
| {{/item}} | {{/item}} | ||||
| </ul> | </ul> | ||||
| {{/list}} | {{/list}} | ||||
| @@ -1,6 +1,6 @@ | |||||
| <h1>Colors</h1> | <h1>Colors</h1> | ||||
| <ul> | |||||
| <li><strong>red</strong></li> | |||||
| <li><a href="#Green">green</a></li> | |||||
| <li><a href="#Blue">blue</a></li> | |||||
| </ul> | |||||
| <ul> | |||||
| <li><strong>red</strong></li> | |||||
| <li><a href="#Green">green</a></li> | |||||
| <li><a href="#Blue">blue</a></li> | |||||
| </ul> | |||||
| @@ -1,4 +1,4 @@ | |||||
| {{name}} | {{name}} | ||||
| {{#children}} | {{#children}} | ||||
| {{>partial}} | |||||
| {{>partial}} | |||||
| {{/children}} | {{/children}} | ||||
| @@ -1,4 +1,4 @@ | |||||
| {{name}} | {{name}} | ||||
| {{#kids}} | {{#kids}} | ||||
| {{>partial}} | |||||
| {{>partial}} | |||||
| {{/kids}} | {{/kids}} | ||||
| @@ -1,6 +1,6 @@ | |||||
| name | name | ||||
| desc | desc | ||||
| t1 | |||||
| t1 | |||||
| 0 | 0 | ||||
| t2 | |||||
| t2 | |||||
| 1 | 1 | ||||
| @@ -1,8 +1,8 @@ | |||||
| t1 | |||||
| t1 | |||||
| 0 | 0 | ||||
| t2 | |||||
| t2 | |||||
| 1 | 1 | ||||
| t1 | |||||
| t1 | |||||
| 0 | 0 | ||||
| t2 | |||||
| t2 | |||||
| 1 | 1 | ||||
| @@ -3,7 +3,7 @@ | |||||
| <p>{{description}}</p> | <p>{{description}}</p> | ||||
| <ul> | <ul> | ||||
| {{#a_list}} | {{#a_list}} | ||||
| <li>{{label}}</li> | |||||
| <li>{{label}}</li> | |||||
| {{/a_list}} | {{/a_list}} | ||||
| </ul> | </ul> | ||||
| {{/a_object}} | {{/a_object}} | ||||
| @@ -1,6 +1,6 @@ | |||||
| <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>listitem2</li> | |||||
| <li>listitem1</li> | |||||
| <li>listitem2</li> | |||||
| </ul> | </ul> | ||||
| @@ -105,7 +105,7 @@ var Mustache = function() { | |||||
| var that = this; | var that = this; | ||||
| // CSW - Added "+?" so it finds the tighest bound, not the widest | // CSW - Added "+?" so it finds the tighest bound, not the widest | ||||
| var regex = new RegExp(this.otag + "(\\^|\\#)\\s*(.+)\\s*" + this.ctag + | var regex = new RegExp(this.otag + "(\\^|\\#)\\s*(.+)\\s*" + this.ctag + | ||||
| "\\s*([\\s\\S]+?)" + this.otag + "\\/\\s*\\2\\s*" + this.ctag + | |||||
| "\n*([\\s\\S]+?)" + this.otag + "\\/\\s*\\2\\s*" + this.ctag + | |||||
| "\\s*", "mg"); | "\\s*", "mg"); | ||||
| // for each {{#foo}}{{/foo}} section do... | // for each {{#foo}}{{/foo}} section do... | ||||