Skip to content

Instantly share code, notes, and snippets.

@tenodi
tenodi / Gruntfile.js
Last active October 10, 2015 22:52
Using html-minifier customAttrSurround for allowing swig template
/**
* This is RegEx which is needed to be used if we want to catch something like:
<tr data-url="/beach"
{% if weather.isHot() %}
class="clickableRow"
{% endif %}
>
* Important notes:
* - We need \s* for catching all the whitespace before and after.