Please see my other MVC articles.
Instantiating Script and Style References Efficiently
Including references to script and style tags has always been a tedious and time-consuming web development task.
Now MVC 4 provides an alternate method by allowing developers to “bundle” files together into a single reference which may then be referenced to “render” them into appropriate pages.
For this example I’ll begin with a simple table encapsulated within a div.
Instead of using separate include statements, I can “bundle” them together and simply use the virtual reference later within pages.
Now I may refer to each file by its virtual reference (the first string) instead of the much longer file path.
Now within my page’s source, my files have the necessary tags to be used.
Also, my View’s div and table are styled as intended.