C# Класс 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.
Показать файл Открыть проект Примеры использования класса

Private Properties

Свойство Тип Описание
CreateCodeSettings CodeSettings

Открытые методы

Метод Описание
JavascriptMinifier ( ) : System

Creates a new Minifier instance.

Minify ( string script ) : string

Gets the minified version of the passed in script.

Приватные методы

Метод Описание
CreateCodeSettings ( ) : CodeSettings

Builds the required CodeSettings class needed for the Ajax Minifier.

Описание методов

JavascriptMinifier() публичный Метод

Creates a new Minifier instance.
public JavascriptMinifier ( ) : System
Результат System

Minify() публичный Метод

Gets the minified version of the passed in script.
public Minify ( string script ) : string
script string
Результат string