grunt-html-annotation
v0.2.0
Published
Annotate elements in HTML pages
Downloads
1
Readme
grunt-html-annotation
Annotate elements in HTML pages
Getting Started
Install this grunt plugin next to your project's grunt.js gruntfile with: npm install grunt-html-annotation
Then add this line to your project's grunt.js
gruntfile:
grunt.loadNpmTasks('grunt-html-annotation');
Documentation
A very simple plugin (grunt 0.3 only for the time being) that annotates HTML elements with their tag names e.g:
Before:
<h1>A header</h1>
After:
<h1>[h1] A header</h1>
Configuration
In your grunt config section:
"html-annotation":{
src:'src/folder',
dest:'dest/folder'
}
You don't need to add trailing forward slashes.
Running
Run grunt html-annotation
and the generated files will appear in the folder as denoted by the 'dest' config option.
Possible Upcoming Features
- Grunt 0.4 compatible.
- Make annotation configurable.
- Multi-task options.
Contributing
In lieu of a formal styleguide, take care to maintain the existing coding style. Add unit tests for any new or changed functionality. Lint and test your code using grunt.
Release History
- 0.1.0 - Initial plugin release.
License
Copyright (c) 2013 Ben Paddock
Licensed under the MIT license.