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

Convert `exists` body to be a helper #121

Closed smfoote closed 9 years ago

smfoote commented 9 years ago

Now {?hello} ... {/hello} is the same as {@exists key="hello"} ... {/exists}

This change is significant because:

  1. It ensures that any functionality that is available in builtin Tornado bodies can be implemented in a 3rd party helper
  2. It prepares the way to further reduce the size of the runtime
  3. It allows 3rd party developers to potentially overwrite the functionality of builtin Tornado bodies