Handlebars:
Template
<p>{{firstname}} {{lastname}}</p>
Preparation-Script
// Handlebars.registerHelper('loud', function(string) {
//    return string.toUpperCase()
// });
Input
{
  firstname: "Yehuda",
  lastname: "Katz"
}
Output
<p>Yehuda Katz</p>