compileHTMLDietFileString

Compiles a Diet template given as a string, with support for includes and extensions.

This function behaves the same as compileHTMLDietFile, except that the contents of the file are

The final HTML will be written to the given _diet_output output range.

  1. void compileHTMLDietFileString(R dst)
    template compileHTMLDietFileString(string filename, alias contents, ALIASES...)
    version(DietUseLive)
    nothrow
    void
    compileHTMLDietFileString
    (
    R
    )
    (
    ref R dst
    )
  2. string compileHTMLDietFileString(R dst)
  3. void compileHTMLDietFileString(R dst)

Members

Aliases

TRAITS
alias TRAITS = DietTraits!ALIASES
Undocumented in source.
_dietParser
alias _dietParser = realCompileHTMLDietFileString!(filename, contents, TRAITS)._dietParser
Undocumented in source.

Functions

compileHTMLDietFileString
void compileHTMLDietFileString(R dst)

See .compileHTMLDietFileString

compileHTMLDietFileString
string compileHTMLDietFileString(R dst)

See .compileHTMLDietFileString

compileHTMLDietFileString
void compileHTMLDietFileString(R dst)

See .compileHTMLDietFileString

Parameters

filename

The name to associate with contents

contents

The contents of the Diet template

ALIASES

A list of variables to make available inside of the template, as well as traits structs annotated with the @dietTraits attribute.

See Also

compileHTMLDietFile, compileHTMLDietString, compileHTMLDietStrings

Meta