vibe.d beta banner
get vibe.d
0.9.0

Asynchronous I/O that doesn’t get in your way, written in D

Function getHTMLRawTextOnly

This is like getHTMLMixin, but returns only the NON-code portions of the diet template. The usage is for the DietLiveMode, which can update the HTML portions of the diet template at runtime without requiring a recompile.

string getHTMLRawTextOnly (
  const(Document) doc,
  string range_name = "_diet_output",
  HTMLOutputStyle style = cast(HTMLOutputStyle)0
) @safe;

Parameters

NameDescription
doc The root nodes of the DOM tree.
range_name Optional custom name to use for the output range, defaults to _diet_output.
style Output style to use.

Returns

The return value is a concatenated string with each string of raw HTML text separated by a null character. To extract the strings to send into the live renderer, split the string based on a null character.

Authors
Copyright
License