render


Description:

public string render (HashMap<string,string> vars)

Renders the compiled template with the given variables.

Example:

    string tpl = "{{gree" + "ting}}, {{na" + "me}}!";
var tmpl = Template.compile (tpl);
var vars = new HashMap<string, string> (str_hash, str_equal);
vars.put ("greeting", "Hello");
vars.put ("name", "World");
string result = tmpl.render (vars);

Parameters:

vars

variable map for substitution.

Returns:

rendered string.