www.digitalmars.com Sargon Component Library for D




sargon.textmac

Text macro processor

License:
Boost License 1.0

Authors:
Walter Bright

Source:
src/sargon/textmac.d

string expand(const(char)[] text, string[string] table, bool html = false);
Expand macro.

The macro processor is the same one used in Ddoc.

Parameters:
const(char)[] text source text to expand
string[string] table table of name=value macro definitions
bool html true if recognize HTML tags and comments

Returns:
The source text after macro expansion. The return string is GC allocated.