On Sun, 16 Dec 2012 18:28:25 GMT, Robert wrote:

(...)

mixin(compileDietTemplate!("template-file.dt", "res.bodyWriter"));

What about
mixin(compileDietTemplate!("template-file.dt", res.bodyWriter));
?

That may work (not sure if a an arbitrary expression is allowed as a template alias parameter), but it would probably suffer from the same DMD bug as render!(). It's rare, but causes some really bad memory corruption or unexplainable linker errors. I really need to get around and reproduce it in dustmite...