Created
July 2, 2017 18:41
-
-
Save Vlasterx/5310ed6cb8417d331c9f74808a345700 to your computer and use it in GitHub Desktop.
Vue for Zurb Panini
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
/* | |
In order to use Vue with Zurb Panini, you need to put this file in /helpers/ folder. | |
After that, in your HTML use | |
{{#vue}} variable {{/vue}} | |
instead of this | |
{{ variable }} | |
*/ | |
module.exports = function(options) { | |
// options.fn(this) = Handelbars content between {{#vue}} HERE {{/vue}} | |
var vue = '{{' + options.fn(this) + '}}'; | |
return vue; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment