grunt-siml
v1.0.0
Published
SIML in Grunt
Downloads
20
Readme
grunt-siml
Compile SIML templates.
Checkout Grunt, and SIMLs introduction.
Usage
This plugin requires Grunt ^1.0.0-rc.1
npm install grunt-siml --save-dev
Load the task with grunt.loadNpmTasks
:
grunt.loadNpmTasks('grunt-siml');
siml
task
Run siml
task with the grunt siml
command.
Task targets, files and options can be specified according to the Grunt’s Configuring tasks guide.
Options
pretty
siml: {
options: {
pretty: false
}
}
Output indented HTML (default: true
).
See #indent.
indent
siml: {
options: {
indent: '\t'
}
}
Use custom indentation (default: " "
). Works only with pretty: true
curly
siml: {
options: {
curly: true
}
}
When true, nests with curly braces, when false, nests with white space (default: false
).
parse
siml: {
options: {
parse: 'html5'
}
}
Which SIML parser to use: "html5"
, "angular"
, or "default"
.
License
MIT © Titus Wormer