Support dynamic content (not on the filesystem) using ASP.NET MVC bundles

202 views Asked by At

I have been using SquishIt to bundle and minify css and javascript. Now, I have to move to MVC bundles and replace SquishIt. SquishIt provides a way to to feed in dynamic content at runtime so that I can load things like LESS variables from a database.

Here's how I do in SquishIt when I need to feed in javascript string:

  .AddString("$(function() { alert('Need Support for dynamic content'); });")

Currently it looks like the only way I can bundle content in ASP.NET MVC bundles is if there is an actual file on the file system. Is there a way to read the content from database and feed to MVC bundle?

0

There are 0 answers