title: How to package my angular templates with grunt and browserify
body: <p>I am using <code>angular1</code> with <code>browserify</code> and <code>grunt</code> to build the application. Currently <code>browserify</code> only packages the controllers and fetches the templates using <code>ng-include</code>in a separate ajax call.</p>
  
  <p>Because of a lot of ajax calls, i want to package the templates along with the javascript.I am currently using <code>grunt-processhtml</code> to include the output from <code>browserify</code> in my <code>html</code>. What i need to know is how can i generate an output like</p>
  
  <pre><code>&lt;script type="text/ng-template" id="/templates/*.html"&gt;
    # Template content
  &lt;/script&gt;
  </code></pre>
  
  <p>Where <code>*</code> is a wildcard of all files inside <code>templates</code> folder and they contain the content of that file. Thanks in advance for helping me out.</p>