gulp-marko-axu
Render marko template
marko website is http://markojs.com/
Install
npm install gulp-marko-axu --save-dev
Usage
src/greeting.html
Hello ${data.name}! $color No colors!
gulpfile.js
var gulp = ;var marko_axu = ; gulp;
You can alternatively use set option
var gulp = ;var marko_axu = ; gulp;
dist/greeting.html
Hello Thomas! red green blue
And you can use with gulp-changed
var gulp = ;var marko_axu = ;var changed = ; gulp;
tmpl-metadata tag attributes
value todata.metadata
Use the 페이지 테스트 ${data.metadata.parentTitle}
API
marko_axu(data, [options])
Render a template using the provided data
.
data
Type: Object
The data object used to populate the text.
options
options
Type: Object
flatten
Type: Object
It will ignore the folder structure. It treats it as if it is located the file just below the "src_root".
extension
Type: String
It is used when you are trying to change the file extension.
Notes
If you use grunt instead of gulp, but want to perform a similar task, use grunt-ax-marko.
License
MIT © Thomas Jang