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)
    version(Have_vibe_d)
    @safe
    void
    renderEmbd
    (
    string FILE
    ALIASES...
    )
    (
    OutputStream dst
    )
  2. void renderEmbd(HTTPServerResponse res, string content_type)

Examples

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

Meta