cgross / grunt-dom-munger

Grunt task to read and manipulate HTML with CSS selectors.
MIT License
93 stars 40 forks source link

Added possibility for callback function to cancel updating source file. #27

Closed bostrom closed 10 years ago

bostrom commented 10 years ago

Solution to #26. The check for update uses the callback return value and !== false for backwards compatibility. A callback return value of true could also work, but it seems more dangerous.

cgross commented 10 years ago

Thanks for the pull request (with test!).