render

Renders the given Diet template and makes all ALIASES available to the template.

You can call this function as a pseudo-member of HTTPServerResponse using D's uniform function call syntax.

@property
void
render
(
string template_file
ALIASES...
)

Examples

string title = "Hello, World!";
int pageNumber = 1;
res.render!("mytemplate.dt", title, pageNumber);

See Also

diet.html.compileHTMLDietFile

Meta