Created
June 9, 2016 18:33
-
-
Save mateusvahl/1d9409bf28865522a89a283da3133e98 to your computer and use it in GitHub Desktop.
This file contains 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
var pattern = name; | |
var outlet = new Handlebars.SafeString(options.fn(this)); | |
var params = Object.assign(options.hash, {outlet: outlet}); | |
var template = Handlebars.compile(`{{> ${name} }}`); | |
return template(params); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment