vibe.d beta banner
get vibe.d

Asynchronous I/O that doesn’t get in your way, written in D

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


Sönke Ludwig


© 2013-2016 Sönke Ludwig


Subject to the terms of the MIT license, as written in the included LICENSE.txt file.