diff options
Diffstat (limited to 'vendor/handlebars/examples/script')
-rw-r--r-- | vendor/handlebars/examples/script/goals.rhai | 3 | ||||
-rw-r--r-- | vendor/handlebars/examples/script/template.hbs | 10 |
2 files changed, 13 insertions, 0 deletions
diff --git a/vendor/handlebars/examples/script/goals.rhai b/vendor/handlebars/examples/script/goals.rhai new file mode 100644 index 000000000..65828202e --- /dev/null +++ b/vendor/handlebars/examples/script/goals.rhai @@ -0,0 +1,3 @@ +let goals = params[0]; + +goals.len() diff --git a/vendor/handlebars/examples/script/template.hbs b/vendor/handlebars/examples/script/template.hbs new file mode 100644 index 000000000..c04253c72 --- /dev/null +++ b/vendor/handlebars/examples/script/template.hbs @@ -0,0 +1,10 @@ +Bundesliga Match Day +{{#each this as |match|}} + {{#each match as |team|}} + {{team.name}} - {{score team.goals}} + {{#each team.goals as |scorer|}} + > {{scorer}} + {{/each}} + {{/each}} + --- +{{/each}} |