embd

Low-level API for embedding D code into text.

Public Imports

diet.input
public import diet.input;
Undocumented in source.

Members

Functions

embd__createRenderingCode
string embd__createRenderingCode(string embd_code, string embd_start, string embd_end, const(dchar)[] embd_evalCodes)
Undocumented in source. Be warned that the author may not have intended to support it.
renderEmbd
void renderEmbd(HTTPServerResponse res, string content_type)

Renders an EMBD template to an output stream.

renderEmbd
void renderEmbd(OutputStream dst)
renderEmbdCompat
void renderEmbdCompat(OutputStream dst, ...)

Renders an EMBD template to an output stream.

Imports

HTTPServerResponse (from vibe.http.server)
public import vibe.http.server : HTTPServerResponse;
Undocumented in source.
OutputStream (from vibe.core.stream)
public import vibe.core.stream : OutputStream;
Undocumented in source.
filterHTMLEscape (from vibe.textfilter.html)
public import vibe.textfilter.html : filterHTMLEscape;
Undocumented in source.
streamOutputRange (from vibe.stream.wrapper)
public import vibe.stream.wrapper : streamOutputRange;
Undocumented in source.

Interfaces

Context
interface Context

The object which manages the rendering of an embd template.

Meta

License

MIT (Expat) License

Authors

Nathan M. Swan