Function: parseTemplate()
parseTemplate(
text):TemplatePart[]
Split a string into literal text and {{ ref }} parts. Returns undefined when
the string contains a {{ … }} that is not a canonical reference, or no
reference at all.
Parameters
text
string