Compile SIML templates.
JavaScript HTML
Switch branches/tags
Nothing to show
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
tasks
test
.gitignore
.npmignore
Gruntfile.js
History.md
LICENSE
Readme.md
package.json

Readme.md

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