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

Making compiler extensions easier #119

Closed smfoote closed 9 years ago

smfoote commented 9 years ago

Nothing is really different here, except that the compiler passes are added with helpers. Each helper can multiple passes to each stage of compilation.

Two new methods are added to the compiler: useHelper and useHelpers. The first allows the compiler to use a given compiler helper, and does the same for multiple helpers.

jimmyhchan commented 9 years ago

looks good.

helpers might be amgibuous. Maybe plugins or extensions?

smfoote commented 9 years ago

I like extensions. I'll make the change.