Skip to content

Latest commit

 

History

History
27 lines (17 loc) · 546 Bytes

README.md

File metadata and controls

27 lines (17 loc) · 546 Bytes

#swig-htmltidy

Use htmltidy tidy functionality as a swig tag.

##Install npm install --save swig-htmltidy

##Usage

var swigHtmlTidy = require('swig-htmltidy')
  , swig = require('swig')

//Add all lodash functions
swigHtmlTidy.useTag(htmltidy, 'htmltidy')

Now you can use the lodash functions as a swig filter.

{% htmltidy %}<p class="name"></p>{% endhtmltidy %}

Made with ⚡️ by @aanzeenl