tomastrajan / grunt-ngsrc

Find and add your Angular.js source files into index.html automatically
11 stars 0 forks source link

annotation begin and end for reusability #2

Open zifnab87 opened 9 years ago

zifnab87 commented 9 years ago

Is it possible to add support two annotations (one for start and on for ending) so that you replace only what is between the two and allow reusability of the annotations (similar to https://github.com/AntoineMary/grunt-angular-file-loader or https://github.com/klei/grunt-injector) ?

<!-- start:ngsrc -->

<!-- end:ngsrc -->

Thanks

tomastrajan commented 9 years ago

You mean that the comment annotation will stay there after the replacement already took part ?

zifnab87 commented 9 years ago

I mean that if you use two comment lines, one for start and one for end, you will be able to keep replacing what is in between. Check the two links that I sent you. In your case the replacement happens once and then the next time someone should go and put the comment again in html