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 intersting is that we can go further precompile templates so we can serve templates as single
JS file with our app scripts. Stay turned.
Now about implmentation.
- Bundle HTML templates to the single file
- Precompile Underscore templates (ver 1.3.3)
Assuming that you have folder structure like this
bundle configuration will be
Complete example is SampleWebApp project in sources.
PM> Install-Package UnderscoreBundler -Pre
Licensed under the MIT