Skip to content

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

Notifications You must be signed in to change notification settings

vicerwang/fis-postprocessor-velocity

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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

key default
root fis.project.getProjectPath()
commonMock ""

About

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

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published