vibe.d beta banner
get vibe.d
0.10.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 (
  in const(Document) doc,
  string range_name = "_diet_output",
  HTMLOutputStyle style = HTMLOutputStyle.compact
) @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