Template render
Renders a Diet template file to the current HTTP response.
template render(string diet_file, ALIASES...)
;
This function is equivalent to render
, but implicitly
writes the result to the response object of the currently processed
request.
Note that this may only be called from a function/method
registered using registerWebInterface
.
In addition to the vanilla render
function, this one also makes additional
functionality available within the template:
- The
req
variable that holds the current request object - If the
@translationContext
attribute us used, enables the built-in i18n support of Diet templates
Contained Functions
Name | Description |
---|---|
render |