src code

constructor new Template

new Template(template[, pattern = Template.Pattern])

Creates a Template object.

The optional pattern argument expects a RegExp that defines a custom syntax for the replaceable symbols in template.