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

a setState pass and more logic in states #139

Closed jimmyhchan closed 8 years ago

jimmyhchan commented 8 years ago

Instead of the framestack in #138, this Pull Request uses state for the html attribute logic.Using the framestack we automatically received the logic that tornado bodys reset the state/stack.

Moving this html attribute code into a setState pass we have the tornado resetting happen only in the generateJS step (see util.inHtmlAttribute). Not sure if this is cleaner then #138 but this is logic may be necessary

jimmyhchan commented 8 years ago

renamed Stack.stack() to Stack.toArray(), removed dist folder and updated gitignore and npmignore. remove unused pushAttr and popAttr. Squashed to one commit.

smfoote commented 8 years ago

Nice!