Temple: Compile time, embedded D templates

Dylan Knutson tcdknutson at gmail.com
Fri Jan 3 14:49:23 PST 2014


On Friday, 3 January 2014 at 17:50:22 UTC, Nicolas Sicard wrote:
> I wish Variant worked at compile time myself. Did you file a 
> bug/enhancement request? (I couldn't find one in bugzilla).

https://d.puremagic.com/issues/show_bug.cgi?id=11864

Doing some more tests, it seems like just about any template can 
be evaluated at compile time, if they don't set variables on the 
context (via var.name, or var("name")). I was surprised to find 
even filters work for CTFE'd templates!


More information about the Digitalmars-d-announce mailing list