gulp-imports icon indicating copy to clipboard operation
gulp-imports copied to clipboard

Add support to inject html files inside javascript

Open sergiofilhowz opened this issue 9 years ago • 0 comments

For example:

template : '${import:template.html}',

This is useful to avoid writing html code inside javascript files, common uses are backbone, and typeahead and other front-end libraries.

You have to be aware of line-endings inside html file and escape any " or ', depending on which is used.

Congratulations for your plugin!

sergiofilhowz avatar Apr 29 '15 20:04 sergiofilhowz