On Thu, 18 Apr 2013 19:52:35 GMT, Matej Nanut wrote:

(...)

This is the error:

[B7235F80:B7235F00 ERR] Error after page has been written: core.exception.AssertError@diet.d(95): Assertion failure
(...)

Looks like the actualy type of a parameter passed to req.renderCompat!() is different that what was passed in the template argument (which was not easy to find in the source code because the assertion happens inside of a string mixin...). I've made a commit with proper error messages for all assertions in the Diet compiler.