IncludeHandling

NOTE: IncludeHandling has been moved to this fork: https://hg01.codeplex.com/forks/mvccontrib/mvccontribincludehandling

Description

This project was first started by Peter Mounce in GitHub (where you can still see the original code) and then moved to MvcContrib and renamed from IncludeCombiner to IncludeHandling.

IncludeHandling is a resuable component written for ASP.NET MVC that is for handling static file-includes like CSS and Javascript in a best-practise way, that can be dropped into your own ASP.NET MVC web project, configured, and used with a minimum of effort.

Features


Also, it's configurable so you can control:

And finally:

How to use it

  <css path="~/include/css/xxx.css" compressionOrder="gzip,deflate" cacheFor="365:00:00:00.000" minify="true|false">
      <options verbose="false|true" obfuscate="false|true" preserveSemiColons="true|false" disableOptimizations="false|true" lineBreakAt="{int}" />
  </css>
  <js path="~/include/js/xxx.js" compressionOrder="gzip,deflate" cacheFor="365:00:00:00.000" minify="true|false">
      <options lineBreakAt="{int}" compressionType="Hybrid|StockYuiCompressor|MichaelAshRegexEnhancements" />