-
Notifications
You must be signed in to change notification settings - Fork 2k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
29 changed files
with
154 additions
and
124 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
{ | ||
"globals": { | ||
"require": true | ||
}, | ||
"rules": { | ||
// Disabling for tests, for now. | ||
"no-path-concat": 0, | ||
|
||
"no-var": 0, | ||
"no-shadow": 0, | ||
"handle-callback-err": 0, | ||
"no-console": 0 | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,6 @@ | ||
module.exports = { | ||
helpers: { | ||
foo: function(options) { | ||
foo: function() { | ||
return ''; | ||
} | ||
}, | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,7 @@ | ||
module.exports = { | ||
context: { names: [{name: "Moe"}, {name: "Larry"}, {name: "Curly"}, {name: "Shemp"}] }, | ||
handlebars: "{{#each names}}{{name}}{{/each}}", | ||
dust: "{#names}{name}{/names}", | ||
mustache: "{{#names}}{{name}}{{/names}}", | ||
eco: "<% for item in @names: %><%= item.name %><% end %>" | ||
context: { names: [{name: 'Moe'}, {name: 'Larry'}, {name: 'Curly'}, {name: 'Shemp'}] }, | ||
handlebars: '{{#each names}}{{name}}{{/each}}', | ||
dust: '{#names}{name}{/names}', | ||
mustache: '{{#names}}{{name}}{{/names}}', | ||
eco: '<% for item in @names: %><%= item.name %><% end %>' | ||
}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,4 @@ | ||
module.exports = { | ||
context: { names: [{name: "Moe"}, {name: "Larry"}, {name: "Curly"}, {name: "Shemp"}] }, | ||
handlebars: "{{#names}}{{name}}{{/names}}" | ||
} | ||
context: { names: [{name: 'Moe'}, {name: 'Larry'}, {name: 'Curly'}, {name: 'Shemp'}] }, | ||
handlebars: '{{#names}}{{name}}{{/names}}' | ||
}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,4 @@ | ||
module.exports = { | ||
context: { names: [{name: "Moe"}, {name: "Larry"}, {name: "Curly"}, {name: "Shemp"}] }, | ||
handlebars: "{{#each names}}{{@index}}{{name}}{{/each}}" | ||
} | ||
context: { names: [{name: 'Moe'}, {name: 'Larry'}, {name: 'Curly'}, {name: 'Shemp'}] }, | ||
handlebars: '{{#each names}}{{@index}}{{name}}{{/each}}' | ||
}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,6 @@ | ||
module.exports = { | ||
context: { names: [{name: "Moe"}, {name: "Larry"}, {name: "Curly"}, {name: "Shemp"}], foo: 'bar' }, | ||
handlebars: "{{#each names}}{{../foo}}{{/each}}", | ||
mustache: "{{#names}}{{foo}}{{/names}}", | ||
eco: "<% for item in @names: %><%= @foo %><% end %>" | ||
context: { names: [{name: 'Moe'}, {name: 'Larry'}, {name: 'Curly'}, {name: 'Shemp'}], foo: 'bar' }, | ||
handlebars: '{{#each names}}{{../foo}}{{/each}}', | ||
mustache: '{{#names}}{{foo}}{{/names}}', | ||
eco: '<% for item in @names: %><%= @foo %><% end %>' | ||
}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,6 @@ | ||
module.exports = { | ||
context: { names: [{bat: 'foo', name: ["Moe"]}, {bat: 'foo', name: ["Larry"]}, {bat: 'foo', name: ["Curly"]}, {bat: 'foo', name: ["Shemp"]}], foo: 'bar' }, | ||
handlebars: "{{#each names}}{{#each name}}{{../bat}}{{../../foo}}{{/each}}{{/each}}", | ||
mustache: "{{#names}}{{#name}}{{bat}}{{foo}}{{/name}}{{/names}}", | ||
eco: "<% for item in @names: %><% for child in item.name: %><%= item.bat %><%= @foo %><% end %><% end %>" | ||
context: { names: [{bat: 'foo', name: ['Moe']}, {bat: 'foo', name: ['Larry']}, {bat: 'foo', name: ['Curly']}, {bat: 'foo', name: ['Shemp']}], foo: 'bar' }, | ||
handlebars: '{{#each names}}{{#each name}}{{../bat}}{{../../foo}}{{/each}}{{/each}}', | ||
mustache: '{{#names}}{{#name}}{{bat}}{{foo}}{{/name}}{{/names}}', | ||
eco: '<% for item in @names: %><% for child in item.name: %><%= item.bat %><%= @foo %><% end %><% end %>' | ||
}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,4 @@ | ||
module.exports = { | ||
context: { person: { name: "Larry", age: 45 } }, | ||
handlebars: "{{#person}}{{name}}{{age}}{{/person}}" | ||
context: { person: { name: 'Larry', age: 45 } }, | ||
handlebars: '{{#person}}{{name}}{{age}}{{/person}}' | ||
}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,7 @@ | ||
module.exports = { | ||
context: { person: { name: "Larry", age: 45 } }, | ||
handlebars: "{{#with person}}{{name}}{{age}}{{/with}}", | ||
dust: "{#person}{name}{age}{/person}", | ||
eco: "<%= @person.name %><%= @person.age %>", | ||
mustache: "{{#person}}{{name}}{{age}}{{/person}}" | ||
context: { person: { name: 'Larry', age: 45 } }, | ||
handlebars: '{{#with person}}{{name}}{{age}}{{/with}}', | ||
dust: '{#person}{name}{age}{/person}', | ||
eco: '<%= @person.name %><%= @person.age %>', | ||
mustache: '{{#person}}{{name}}{{age}}{{/person}}' | ||
}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,10 +1,10 @@ | ||
module.exports = { | ||
context: { name: '1', kids: [{ name: '1.1', kids: [{name: '1.1.1', kids: []}] }] }, | ||
partials: { | ||
mustache: { recursion: "{{name}}{{#kids}}{{>recursion}}{{/kids}}" }, | ||
handlebars: { recursion: "{{name}}{{#each kids}}{{>recursion}}{{/each}}" } | ||
mustache: { recursion: '{{name}}{{#kids}}{{>recursion}}{{/kids}}' }, | ||
handlebars: { recursion: '{{name}}{{#each kids}}{{>recursion}}{{/each}}' } | ||
}, | ||
handlebars: "{{name}}{{#each kids}}{{>recursion}}{{/each}}", | ||
dust: "{name}{#kids}{>recursion:./}{/kids}", | ||
mustache: "{{name}}{{#kids}}{{>recursion}}{{/kids}}" | ||
handlebars: '{{name}}{{#each kids}}{{>recursion}}{{/each}}', | ||
dust: '{name}{#kids}{>recursion:./}{/kids}', | ||
mustache: '{{name}}{{#kids}}{{>recursion}}{{/kids}}' | ||
}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,11 +1,11 @@ | ||
module.exports = { | ||
context: { peeps: [{name: "Moe", count: 15}, {name: "Larry", count: 5}, {name: "Curly", count: 1}] }, | ||
context: { peeps: [{name: 'Moe', count: 15}, {name: 'Larry', count: 5}, {name: 'Curly', count: 1}] }, | ||
partials: { | ||
mustache: { variables: "Hello {{name}}! You have {{count}} new messages." }, | ||
handlebars: { variables: "Hello {{name}}! You have {{count}} new messages." } | ||
mustache: { variables: 'Hello {{name}}! You have {{count}} new messages.' }, | ||
handlebars: { variables: 'Hello {{name}}! You have {{count}} new messages.' } | ||
}, | ||
|
||
handlebars: "{{#each peeps}}{{>variables}}{{/each}}", | ||
dust: "{#peeps}{>variables/}{/peeps}", | ||
mustache: "{{#peeps}}{{>variables}}{{/peeps}}" | ||
handlebars: '{{#each peeps}}{{>variables}}{{/each}}', | ||
dust: '{#peeps}{>variables/}{/peeps}', | ||
mustache: '{{#peeps}}{{>variables}}{{/peeps}}' | ||
}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,7 @@ | ||
module.exports = { | ||
context: { person: { name: {bar: {baz: "Larry"}}, age: 45 } }, | ||
handlebars: "{{person.name.bar.baz}}{{person.age}}{{person.foo}}{{animal.age}}", | ||
dust: "{person.name.bar.baz}{person.age}{person.foo}{animal.age}", | ||
eco: "<%= @person.name.bar.baz %><%= @person.age %><%= @person.foo %><% if @animal: %><%= @animal.age %><% end %>", | ||
mustache: "{{person.name.bar.baz}}{{person.age}}{{person.foo}}{{animal.age}}" | ||
context: { person: { name: {bar: {baz: 'Larry'}}, age: 45 } }, | ||
handlebars: '{{person.name.bar.baz}}{{person.age}}{{person.foo}}{{animal.age}}', | ||
dust: '{person.name.bar.baz}{person.age}{person.foo}{animal.age}', | ||
eco: '<%= @person.name.bar.baz %><%= @person.age %><%= @person.foo %><% if @animal: %><%= @animal.age %><% end %>', | ||
mustache: '{{person.name.bar.baz}}{{person.age}}{{person.foo}}{{animal.age}}' | ||
}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,7 @@ | ||
module.exports = { | ||
context: {}, | ||
handlebars: "Hello world", | ||
dust: "Hello world", | ||
mustache: "Hello world", | ||
eco: "Hello world" | ||
handlebars: 'Hello world', | ||
dust: 'Hello world', | ||
mustache: 'Hello world', | ||
eco: 'Hello world' | ||
}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,8 +1,8 @@ | ||
module.exports = { | ||
context: {name: "Mick", count: 30}, | ||
handlebars: "Hello {{name}}! You have {{count}} new messages.", | ||
dust: "Hello {name}! You have {count} new messages.", | ||
mustache: "Hello {{name}}! You have {{count}} new messages.", | ||
eco: "Hello <%= @name %>! You have <%= @count %> new messages." | ||
context: {name: 'Mick', count: 30}, | ||
handlebars: 'Hello {{name}}! You have {{count}} new messages.', | ||
dust: 'Hello {name}! You have {count} new messages.', | ||
mustache: 'Hello {{name}}! You have {{count}} new messages.', | ||
eco: 'Hello <%= @name %>! You have <%= @count %> new messages.' | ||
}; | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.