Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
A small tool to quickly format Discuz! diy module
JavaScript
branch: master

Fetching latest commit…

Cannot retrieve the latest commit at this time

Failed to load latest commit information.
bin modify output info
.gitignore
README.md
package.json

README.md

fast-diy

A small tool to quickly format Discuz! diy module(I hate it!).

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 and run the fast-diy command:

$ fast-diy INPUT.html OUTPUT.html

Sample input:

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

Sample output:

<!--[diy=diy-f78e9de8]--><div class="article" id="diy-f78e9de8">
  <p> test </p>
</div><!--[/diy]-->

License

MIT

Something went wrong with that request. Please try again.