smfoote / tornado

HTML templates with asynchronous rendering, built with JavaScript.
http://smfoote.github.io/tornado/
Apache License 2.0
8 stars 3 forks source link

Add looping helpers and helperContext #100

Closed smfoote closed 9 years ago

smfoote commented 9 years ago

Looping helpers require a globalish context (so they can know if they are first, last, etc.) The helperContext is a place where helpers can store information that can be used by other helpers (e.g. nested helpers) or within the template (e.g. @let could be used to add constants--they're not really variables--to Tornado, that can be used as references in other places in a Tornado template). This is a rough draft.

jimmyhchan commented 9 years ago

:+1: looks good. i like the scope of this new helper context.