A processor for fis to compile velocity template after standard compiling.
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);
}
}
}
key | default |
---|---|
root | fis.project.getProjectPath() |
commonMock | "" |