The OpenD Programming Language

TemplatedDocument.vars

use this to set up the string replacements. document.vars["name"] = "adam"; then in doc, <p>hellp, {$name}.</p>. Note the vars are converted lazily at toString time and are always HTML escaped.

class TemplatedDocument
string[string] vars;

Meta