ASP.NET Underscore.js Templates Bundler
So main idea of this library is about to keep templates as
HTML files near of your
JS files, but serve them as single file to reduce requests. What is more interesting is that we can go further and precompile templates so we can serve templates as single
js file with our app scripts. Stay turned.
Now about implementation.
- Bundle HTML templates to the single file
- Precompile Underscore templates (ver 1.5.1)
Assuming that you have folder structure like this
bundle configuration will be
Complete example is SampleWebApp project in sources.
PM> Install-Package UnderscoreBundler
Licensed under the MIT