Handlebars:
Template
{{log 'this is a simple log output'}}
Preparation-Script
// Handlebars.registerHelper('loud', function(string) {
//    return string.toUpperCase()
// });
Input
null
Output

Press F12 and open the dev-console to see the log output.