Creates a new
Template instance from
str is parsed into tokens, which are stored for internal use. This
means that multiple
execute() operations on a single
are more efficient than one
execute() operations on multiple
null, the result is unspecified.
Template, taking into account
macros for callback functions.
context has a field
name, its value replaces all occurrences of
::name:: in the
Template.globals is checked instead,
name is not a field of that either,
::name:: is replaced with
macros has a field
name, all occurrences of
replaced with the result of calling that field. The first argument is
resolve() method, followed by the given arguments.
macros has no such field, the result is unspecified.
null, the result is unspecified. If
no macros are used.