Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

grunt-processhtml

Package Overview
Dependencies
Maintainers
1
Versions
30
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

grunt-processhtml - npm Package Compare versions

Comparing version 0.2.5 to 0.2.6

5

package.json
{
"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": {

8

README.md

@@ -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)) {

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc