Skip to content

shanielh/broccoli-swig

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

17 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

broccoli-swig

Swig filter for broccoli.

Usage

First, Install :

npm install --save-dev broccoli-swig

And then, Use :

module.exports = function (broccoli) {
    var tree = broccoli.makeTree('some_path');
    
    // This is where the magic happens
    var swigOptions = { context : { locals : { what : "World"} }, extendSwig : function(swig) {
        // Lovely place to extend swig.
    }};
	tree = require('broccoli-swig')(tree, swigOptions);
    
    return tree;
};

About

Swig filter for broccoli

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published