htmlprocessor
Advanced tools
Comparing version 0.1.0 to 0.1.1
@@ -86,3 +86,3 @@ /* | ||
utils._.each(this.options.customBlockTypes, function (processor) { | ||
require(processor).call(this, this); | ||
require(path.resolve(processor)).call(this, this); | ||
@@ -89,0 +89,0 @@ }, this); |
{ | ||
"name": "htmlprocessor", | ||
"description": "Process html file using special comments", | ||
"version": "0.1.0", | ||
"version": "0.1.1", | ||
"author": { | ||
@@ -23,2 +23,5 @@ "name": "Denis Ciccale", | ||
], | ||
"scripts": { | ||
"test": "node test/run.js" | ||
}, | ||
"main": "./lib/htmlprocessor", | ||
@@ -25,0 +28,0 @@ "bin": { |
# htmlprocessor | ||
`npm install -g htmlprocessor` | ||
### Grunt task | ||
This module was originally merged into the [grunt-processhtml](github.com/dciccale/grunt-processhtml) task. | ||
Now its a standalone module without grunt dependency. | ||
For plenty of documentation please visit [grunt-processhtml](github.com/dciccale/grunt-processhtml) | ||
## CLI | ||
```bash | ||
$ htmlprocessor -v | ||
``` | ||
Outputs to `file-to-process.processed.html`. | ||
```bash | ||
$ htmlprocessor file-to-process.html | ||
``` | ||
Outputs to `processed/file.html`. | ||
```bash | ||
$ htmlprocessor file-to-process.html -o processed/file.html | ||
``` | ||
Pass some data | ||
```bash | ||
$ htmlprocessor file-to-process.html -o processed/file.html -d data.json | ||
``` | ||
Specify an environment | ||
```bash | ||
$ htmlprocessor file-to-process.html -o processed/file.html -e dev | ||
``` | ||
Allow recursive processing | ||
```bash | ||
$ htmlprocessor file-to-process.html -o processed/file.html -r | ||
``` | ||
Change the comment marker to `<!-- process --><!-- /process -->` | ||
```bash | ||
$ htmlprocessor file-to-process.html -o processed/file.html --comment-marker process | ||
``` | ||
## License | ||
See [LICENSE.txt](https://raw.github.com/dciccale/node-htmlprocessor/master/LICENSE-MIT) |
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
Dynamic require
Supply chain riskDynamic require can indicate the package is performing dangerous or unsafe dynamic code execution.
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
Dynamic require
Supply chain riskDynamic require can indicate the package is performing dangerous or unsafe dynamic code execution.
Found 1 instance in 1 package
39632
57