Skip to content

Instantly share code, notes, and snippets.

@Vlasterx
Created July 2, 2017 18:41
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 Vlasterx/5310ed6cb8417d331c9f74808a345700 to your computer and use it in GitHub Desktop.
Save Vlasterx/5310ed6cb8417d331c9f74808a345700 to your computer and use it in GitHub Desktop.
Vue for Zurb Panini
/*
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