Handlebars:
Template
some_{{foo}}mustache
some_{{#foo}}abc{{/foo}}block
Preparation-Script
// Handlebars.registerHelper('loud', function(string) {
//    return string.toUpperCase()
// });
Input
{}
Output
some_mustache
some_block