grunt-contrib-haml
Advanced tools
Comparing version 0.1.2 to 0.2.0
{ | ||
"name": "grunt-contrib-haml", | ||
"description": "Compile Haml to HTML", | ||
"version": "0.1.2", | ||
"version": "0.2.0", | ||
"homepage": "https://github.com/jhchen/grunt-contrib-haml", | ||
@@ -28,3 +28,3 @@ "contributors": [{ | ||
"engines": { | ||
"node": ">= 0.8.0" | ||
"node": ">= 0.10.0" | ||
}, | ||
@@ -31,0 +31,0 @@ "scripts": { |
@@ -31,2 +31,4 @@ # grunt-contrib-haml [![Build Status](https://secure.travis-ci.org/jhchen/grunt-contrib-haml.png?branch=master)](http://travis-ci.org/jhchen/grunt-contrib-haml) | ||
Any HAML options are also valid. Ex. { format: 'html5' } will run haml with --format html5. | ||
#### loadPath | ||
@@ -42,2 +44,7 @@ Type: `String|Array` | ||
#### encoding | ||
Type: `String` | ||
Specifiy default character encoding. Same as running haml with the -E option. | ||
### Examples | ||
@@ -58,2 +65,3 @@ | ||
options: { // Target options | ||
bundleExec: true, | ||
style: 'expanded' | ||
@@ -60,0 +68,0 @@ }, |
@@ -25,2 +25,5 @@ /* | ||
var encoding = options.encoding; | ||
delete options.encoding; | ||
grunt.util.async.forEachSeries(this.files, function(f, next) { | ||
@@ -33,2 +36,6 @@ var args = ['haml', f.dest, '--stdin'].concat(dargs(options)); | ||
if (encoding) { | ||
args.push('-E', encoding); | ||
} | ||
var max = f.src.filter(function(filepath) { | ||
@@ -35,0 +42,0 @@ // Warn on and remove invalid source files (if nonull was set). |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
New author
Supply chain riskA new npm collaborator published a version of the package for the first time. New collaborators are usually benign additions to a project, but do indicate a change to the security surface area of a package.
Found 1 instance in 1 package
8093
62
142
0