I am using handlebar templates to prepare email content dynamically before sending over it.
It's straightforward to pass just one value. For example:
What's up {{this}}
template workes fine with template.apply(firstName)
.
Tried changing the template to What's up {{this}}, {{this}}
and try to fill in by template.apply(lastName);
and template.apply(firstName);
.
But it doesn't work.
You have to refer to the variables you set on the
this
object by their name.