grunt-processhtml
Advanced tools
Comparing version 0.2.5 to 0.2.6
{ | ||
"name": "grunt-processhtml", | ||
"description": "Process html files at build time to modify them depending on the release environment", | ||
"version": "0.2.5", | ||
"version": "0.2.6", | ||
"homepage": "https://github.com/dciccale/grunt-processhtml", | ||
@@ -32,5 +32,6 @@ "author": { | ||
"devDependencies": { | ||
"grunt": "0.4.1", | ||
"grunt-contrib-jshint": "0.6.4", | ||
"grunt-contrib-nodeunit": "0.2.1", | ||
"grunt": "0.4.1" | ||
"grunt-release": "0.6.0" | ||
}, | ||
@@ -37,0 +38,0 @@ "peerDependencies": { |
@@ -139,3 +139,3 @@ # grunt-processhtml [![Build Status](https://travis-ci.org/dciccale/grunt-processhtml.png?branch=master)](https://travis-ci.org/dciccale/grunt-processhtml) [![NPM version](https://badge.fury.io/js/grunt-processhtml.png)](http://badge.fury.io/js/grunt-processhtml) | ||
<!-- build:include:dev dev/content.html --> | ||
This will be replaced by the content of dev/header.html | ||
This will be replaced by the content of dev/content.html | ||
<!-- /build --> | ||
@@ -235,2 +235,8 @@ | ||
#### options.includeBase | ||
Type: `String` | ||
Default value: `null` (Will use the path of the including file) | ||
Specify an optional path to look for include files. ie, `app/assets/includes/` | ||
### Usage Examples | ||
@@ -237,0 +243,0 @@ |
@@ -101,3 +101,4 @@ /* | ||
include: function (content, block, blockLine, blockContent) { | ||
var filepath = path.join(path.dirname(filePath), block.asset); | ||
var base = options.includeBase || path.dirname(filePath); | ||
var filepath = path.join(base, block.asset); | ||
var fileContent; | ||
@@ -104,0 +105,0 @@ if (grunt.file.exists(filepath)) { |
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
20157
190
422
4