grunt-siml

1.0.0 • Public • Published

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

Dependencies (1)

Dev Dependencies (1)

Package Sidebar

Install

npm i grunt-siml

Weekly Downloads

1

Version

1.0.0

License

MIT

Last publish

Collaborators

  • wooorm