0.0.3 • Published 11 years ago

fast-diy v0.0.3

Weekly downloads
2
License
-
Repository
github
Last release
11 years ago

fast-diy

A small tool to quickly format Discuz! diy module.

Install from npm

$ npm install -g fast-diy

How to use

Add a "diy" class name to each html tag which is going to be DIYed. Then:

$ fast-diy INPUT.html OUTPUT.html

Example input:

<div class="diy">
  <p> test </p>
</div>

Example output

<!--[diy=diy-f78e9de8]--><div>
  <p> test </p>
</div><!--[/diy]-->

License

MIT