akdubya / dustjs

Asynchronous templates for the browser and node.js
http://akdubya.github.com/dustjs/
MIT License
1.44k stars 131 forks source link

Question: possible? Escaping whole areas of html #63

Open jasonkuhrt opened 11 years ago

jasonkuhrt commented 11 years ago

If this isn't possible then consider this a feature request.

How would such a handler be created:

<pre>
  {#escape}
    <div>test</div>
  {/escape}
</pre>
<pre>&lt;div&gt;test&lt;/div&gt;</pre>

The goal is that in writing documentation, code samples, etc., such a handler would be helpful.