Temple: Compile time, embedded D templates

Dylan Knutson tcdknutson at gmail.com
Fri Jan 3 00:39:39 PST 2014


On Thursday, 2 January 2014 at 10:59:27 UTC, Jacob Carlborg wrote:
> Nice. Do you have any concept of safe vs unsafe strings?

That's a really good idea...
[the day passes by]

Support implemented in v0.5.0: 
https://github.com/dymk/temple#filter-policies

FilterPolicies allow the developer to insert hooks for when an 
expression is appended to the buffer. This can be overloaded for 
different types of expressions, letting concepts like Tainted 
strings (e.g. your safe vs. unsafe strings) to be implemented. I 
added an example to the README showing a simple example of this.


More information about the Digitalmars-d-announce mailing list