Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 7 additions & 3 deletions src/guide/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -126,9 +126,13 @@ mustache, `/`, of the same name. Let's consider a helper that will generate an H

<Example examplePage="/examples/helper-block" show="preparationScript" />

The example creates a helper named `list` to generate our HTML list. The helper receives the `people` as its first
parameter, and an `options` hash as its second parameter. The options hash contains a property named `fn`, which you can
invoke with a context just as you would invoke a normal Handlebars template.
The example creates a helper named `list` to generate our HTML list.

<Example examplePage="/examples/helper-block" show="template" />

The helper receives the `people` as its first parameter, and an `options` hash as its second parameter. The options hash
contains a property named `fn`, which you can invoke with a context just as you would invoke a normal Handlebars
template.
Comment on lines +133 to +135

When executed, the template will render:

Expand Down
Loading