snip
v0.5.1
Published
Downloads
2
Readme
To install: fork or download this code and the "require" to the directory. Or you can npm install snip (this project is also my testing ground for NPM modules).
To use:
<P>
fs.readFile('views/index.html', 'utf8', function(err, data){<BR />
res.writeHead(200, {'Content-Type':'text/html'}); <BR />
res.write(snip.snip(data)); <BR />
res.end();<BR />
});<BR />
</P>
</LI>
That's it. Catch me on twitter @joshbirk if you have any questions.
Todo: