miickel / gulp-angular-templatecache

Concatenates and registers AngularJS templates in the $templateCache.
MIT License
524 stars 103 forks source link

Template Body readme instructions result in incorrect string escaping #140

Closed scotthew closed 6 years ago

scotthew commented 7 years ago

https://www.npmjs.com/package/gulp-angular-templatecache#templatebody-string-templatebodysee-below

The example in the README should construct the template with single quote arguments:

var TEMPLATE_BODY = '$templateCache.put(\'<%= url %>\',\'<%= contents %>\');'; or var TEMPLATE_BODY = "$templateCache.put('<%= url %>','<%= contents %>');";