Created
March 14, 2012 16:15
-
-
Save mikermcneil/2037586 to your computer and use it in GitHub Desktop.
Grails: find css/js URLs and replace them with ${resource} URLs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
For <script> tags: | |
------------------- | |
Find: | |
src="js/(\S+)"> | |
Replace: | |
src="\${resource(dir:'js',file:'$1')}"> | |
For <link> tags: | |
------------------- | |
Find: | |
href="css/(\S+)"/> | |
Replace: | |
href="\${resource(dir:'css',file:'$1')}"/> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Modify as necessary, my tags looked like:
and