C# Class BlogEngine.Core.Web.Scripting.JavascriptMinifier

Helper class for performing minification of Javascript and CSS.
This class is basically a wrapper for the AjaxMin library(lib/AjaxMin.dll). http://ajaxmin.codeplex.com/ There are no symbols that come with the AjaxMin dll, so this class gives a bit of intellisense help for basic control. AjaxMin is a pretty dense library with lots of different settings, so everyone's encouraged to use it directly if they want to.
Show file Open project: rasmuskl/ReSharperCourse Class Usage Examples

Private Properties

Property Type Description
CreateCodeSettings CodeSettings

Public Methods

Method Description
JavascriptMinifier ( ) : System

Creates a new Minifier instance.

Minify ( string script ) : string

Gets the minified version of the passed in script.

Private Methods

Method Description
CreateCodeSettings ( ) : CodeSettings

Builds the required CodeSettings class needed for the Ajax Minifier.

Method Details

JavascriptMinifier() public method

Creates a new Minifier instance.
public JavascriptMinifier ( ) : System
return System

Minify() public method

Gets the minified version of the passed in script.
public Minify ( string script ) : string
script string
return string