gruntjs / grunt-contrib-pug

Compile Pug templates.
http://gruntjs.com/
MIT License
328 stars 77 forks source link

processContent: placeholder like <%= pkg.version %> is not replaced #152

Closed barrynorman closed 8 years ago

barrynorman commented 8 years ago

Maybe I do something wrong. I tried to replace a custom string by my path to a javascript file.

processContent: function(content, filename) { content = content.replace(/(\${jquery_path})/gmi, '<%= pkg.version %>'); return content; }

Output:

Any ideas?

Thank you!

shinnn commented 8 years ago

https://github.com/gruntjs/grunt-contrib-jade/issues/106#issuecomment-49046102