constructor new Template

View source on GitHub →

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.