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

escapable raw is not preserved when entering tornado_body state #140

Open jimmyhchan opened 8 years ago

jimmyhchan commented 8 years ago

this currently fails.

<textarea>
  {#foo}
     <span>should be raw text here </span>
  {/foo}
</textarea>

There is a similar issue in attrs but we have codes to fix all this.

Ideally, we should have a mechanism that knows how to connect a tornado body fragment to it's parent element placeholder based on the state it came from. Perhaps we can solve this generically for escapable_raw and attrs and namespaces and etc.