0.1.4 • Published 10 years ago

grunt-jp-swig v0.1.4

Weekly downloads
2
License
-
Repository
github
Last release
10 years ago

grunt-jp-swig

Swig templates compilation

Sample configuration: swig: { options: { processContent: function(src) { return src; }, processName: function(name) { return name.replace(/^templates\//g,'') .replace(/\//g,'-') .replace(/.twig$/g,''); }, namespace: 'App.tmpl' }, compile: { files: { 'project/www/js/templates.js': 'templates/*/.twig' } } }

On browser site:

swig.run(App.tmpl'example-template', { var1: value, var2: value2});

0.1.4

10 years ago

0.1.3

10 years ago

0.1.2

10 years ago

0.1.1

11 years ago

0.1.0

11 years ago