vibe.d beta banner
get vibe.d
0.7.30

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

Contained Functions

NameDescription
render
Authors

Sönke Ludwig

Copyright

© 2013-2016 RejectedSoftware e.K.

License

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