You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
return"<a href='/posts"+this.url+"'>"+ title +"!</a>"
135
143
});
136
144
@@ -177,12 +185,18 @@ template(data);
177
185
// </ul>
178
186
```
179
187
180
-
Whenever the block helper is called it is given two parameters, the
181
-
argument that is passed to the helper, or the current context if no
182
-
argument is passed and the compiled contents of the block. Inside of
183
-
the block helper the value of `this` is the current context, wrapped to
184
-
include a method named `__get__` that helps translate paths into values
185
-
within the helpers.
188
+
Whenever the block helper is called it is given one or more parameters,
189
+
any arguments that are passed in the helper in the call and an `options`
190
+
object containing the `fn` function which executes the block's child.
191
+
The block's current context may be accessed through `this`.
192
+
193
+
Block helpers have the same syntax as mustache sections but should not be
194
+
confused with one another. Sections are akin to an implicit `each` or
195
+
`with` statement depending on the input data and helpers are explicit
196
+
pieces of code that are free to implement whatever behavior they like.
197
+
The [mustache spec](http://mustache.github.io/mustache.5.html)
198
+
defines the exact behavior of sections. In the case of name conflicts,
0 commit comments