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 %>'
}
},
});