Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save mateusvahl/6398b14b419e64c40ca9f247c7dd7638 to your computer and use it in GitHub Desktop.
Save mateusvahl/6398b14b419e64c40ca9f247c7dd7638 to your computer and use it in GitHub Desktop.
handlebars.createHelper('>>', function(partial, context) {
var html = handlebars.partials[partial];
delete this.styleModifier
var template = handlebars.compile(html)(Object.assin({}, this, context.hash));
return handlebars.SafeString(template);
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment