grunt-allhaml

0.1.3 • Public • Published

grunt-allhaml

convert each of all the haml files to html file in the directory

Getting Started

This plugin requires Grunt ~0.4.4

npm install grunt-allhaml --save-dev

Once the plugin has been installed, it may be enabled inside your Gruntfile with this line of JavaScript:

grunt.loadNpmTasks('grunt-allhaml');

The "allhaml" task

Options

####pathRelativeTo Type: String

Default value: './'

####hamlcommand Type: String

Default value: 'haml'

haml command

####hamloption Type: String

Default value: '-q --no-escape-attrs'

haml command options

####inDir Type: String

Default value: 'haml'

Input directopry name

####outDir Type: String

Default value: 'html'

Output directopry name

####inEx Type: String

Default value: 'haml'

Input file extention name

####outEx Type: String

Default value: 'html'

Output file extention name

Usage Examples

Default Options

grunt.initConfig({
  allhaml: {
    options: {
      inDir: 'haml',
      outDir: 'html',
      ouEx: 'html'
    },
    dist: {
      src: ['<%= allhaml.options.inDir %>/**/*.haml'],
      dest: '<%= allhaml.options.outDir %>'
    }
  },
});

Custom Options

grunt.initConfig({
  allhaml: {
    options: {
      inDir: 'haml',
      outDir: 'html',
      outEx: 'html',
      hamloption: ''
    },
    dist: {
      src: ['<%= allhaml.options.inDir %>/**/*.haml'],
      dest: '<%= allhaml.options.outDir %>'
    }
  },
});

Readme

Keywords

Package Sidebar

Install

npm i grunt-allhaml

Weekly Downloads

2

Version

0.1.3

License

none

Last publish

Collaborators

  • abgata20000