renderEmbd

Renders an EMBD template to an output stream.

These functions provice means to render EMPD templates in a way similar to the render!() function of vibe.d for rendering Diet templates.

Note that these functions are only available if "vibe-d" is available as a dependency or if a "Have_vibe_d" version identifier is specified manually.

  1. void renderEmbd(OutputStream dst)
  2. void renderEmbd(HTTPServerResponse res, string content_type)
    version(Have_vibe_d)
    void
    renderEmbd
    (
    string FILE
    ALIASES...
    )
    (
    HTTPServerResponse res
    ,
    string content_type = "text/html; charset=UTF-8"
    )

Examples

string caption = "Hello, World!";
//res.renderEmbd!("test.embd", caption)();
res.bodyWriter.renderEmbdCompat!("test.embd", string, "caption")(caption);

Meta