David Smith

David Smith

  • NA
  • 2k
  • 0

Learning MVC: Bundles

Sep 27 2013 10:14 AM
I understand the basic common syntax:
I understand the Model concept.
I understand the View concept.
I understand the Controller concept.


There are few other things I want to understand so that when I am using my CSS template, I know what needs to be changes:

The first thread is about the Bundles portion.

 1. Explain the bundles object in detail and its purpose.

 2. If I am creating my own css style sheet should I place all of my css stylesheet into the content folder.

 3. Once I place my css stylesheets into the content folder, is it safe and do I add my css stylesheets created into the bundle object like below.

     bundles.Add(new StyleBundle("~/Content/css").Include("~/Content/site.css"));
     bundles.Add(new StyleBundle("~/Content/logincss").Include("~/Content/login.css"));
     bundles.Add(new StyleBundle("~/Content/admin/css").Include("~/Content/themes/base/admin/style.css"));

4. Can someone point me to a good site using various css templates in a MVC4 project.