extends layout

block content

    -template v(string name){ string e = ""; static if (a==null) alias e v; else alias a.getValue!(name) v; }

Causes compile error:

layout.dt(2): Error: found 'template' instead of statement
layout.dt(2): Error: found '}' instead of statement
layout.dt(2): Error: found '}' instead of statement
layout.dt(2): Error: found '}' instead of statement
layout.dt(2): Error: found '}' instead of statement
layout.dt(2): Error: found '}' instead of statement
layout.dt(2): Error: found '}' instead of statement

layout.dt not contains any D code.

(And how to write multiple lines D code into templates?)