ericclemmons / grunt-angular-templates

Grunt build task to concatenate & pre-load your AngularJS templates
MIT License
710 stars 107 forks source link

Empty templates are incorrectly transformed #39

Closed mgol closed 11 years ago

mgol commented 11 years ago

I use grunt-angular-templates 0.4.0. I've just discovered it incorrectly transforms empty templates, it results in:

  $templateCache.put('/templates/item-row.html',

  );

which is a syntax error. It should put an empty string under this ID instead.

ericclemmons commented 11 years ago

Holy crap, didn't even think about that. Working on this now!

ericclemmons commented 11 years ago

Fixed in v0.4.1: 2e6c001b6ec030e59a3b1af35ac83d41dea7b79b

Thanks again buddy!