TemplateLoader

A loader object for reading raw template, so you can use something other than files if you like.

See TemplateLoader.forDirectory to a pre-packaged class that implements a loader for a particular directory.

Members

Functions

loadTemplateHtml
string loadTemplateHtml(string name)

This is the main method to look up a template name and return its HTML as a string.

Static functions

forDirectory
TemplateLoader forDirectory(string directoryName)

Returns a loader for files in the given directory.

Meta

History

Added December 11, 2023 (dub v11.3)

Suggestion Box / Bug Report