Created
June 14, 2016 18:39
-
-
Save mateusvahl/6398b14b419e64c40ca9f247c7dd7638 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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