dciccale / grunt-processhtml

Process html files at build time to modify them depending on the release environment
MIT License
407 stars 30 forks source link

Add attributes if they don't already exist #38

Closed cvan closed 10 years ago

cvan commented 10 years ago

This example works:

<!-- build:[class]:dist production -->
<html class="debug_mode">
<!-- /build -->

But it would be nice if this also worked:

<!-- build:[class]:dist production -->
<html>
<!-- /build -->

But because of the attr regex, it never gets matched.