0.0.5 • Published 8 years ago

fis-postprocessor-velocity v0.0.5

Weekly downloads
3
License
ISC
Repository
github
Last release
8 years ago

fis-postprocessor-velocity

A processor for fis to compile velocity template after standard compiling.

Usage

fis.match("**/page/**.html", {
    postprocessor: fis.plugin("velocity", {
    	commonMock: 'mock/common/common.js'
    })
});
root
 ├ page
 | ├ index
 | | | ├ index.html
 | | | ├ index.css
 | | | ├ index.js
 | | | └ index.html.js
 ├ widget
 | ├ header
 | | | ├ header.html
 | | | ├ header.css
 | | | └ header.js
 ├ mock
 | ├ common
 | | | └ common.js

index.html.js

module.exports = {
	foo: "bar"
}

common.js

module.exports = {
	math: {
		floor: function(num) {
			return Math.floor(num);
		}
	}
}

Options

0.0.5

8 years ago

0.0.4

8 years ago

0.0.3

9 years ago

0.0.2

9 years ago

0.0.1

9 years ago