I am fairly new to ASP.NET MVC 4 and was wondering what is the ASP.NET way of including css and js files.
Background
In my PHP projects, I usually have arrays for CSS and JS file names that live in the controller. These arrays are passed in the master-template where a function loops through and generates the html tags for each item and auto-versions them at this point as well. The CSS resides in the <head> while the JS resides right before the </body> tag.
Things I am aware of
- The BundleConfig (However, I am strictly concerned with page-specific css/js not global ones)
- Creating some static function in a class that is passed in a list of files to generate the script and link tags accordingly
Question
How should I manage to include (and possibly auto-version and minify like BundleConfig) page specific js and css files from the view (or even the controller).?