Skip to content

drylikov/grunt_siml

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

28 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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).

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".

About

Compile SIML templates .

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published