C# Class NodeNetAsync.Less.NodeNetLessFilter

Adds Css less support and css minimification. Less support is done using dotless. Minification is perform using YUI compressor with IKVM. For .less files: It will transform the .less file into a .css one and will minimize it. For .css files : It will minimize it. Trying to access a .less file directly will cause a 404 error. To reference a .less file you should reference to a file with the same name and path and the extension changed to .css
Inheritance: IHttpStaticFilter
Afficher le fichier Open project: soywiz/NodeNetAsync

Protected Properties

Свойство Type Description
Compressing bool
Config dotless.Core.configuration.DotlessConfiguration
Engine ILessEngine

Méthodes publiques

Méthode Description
NodeNetLessFilter ( bool Compressing = true ) : System

Méthodes protégées

Méthode Description
CssHandler ( HttpStaticFileServer Parameter ) : Task

LessHandler ( HttpStaticFileServer Parameter ) : Task

TransformAsync ( string LessCode, string FileName = "unknown.less" ) : Task

Private Methods

Méthode Description
IHttpStaticFilter ( HttpStaticFileServer HttpStaticFileServer ) : void

Method Details

CssHandler() protected méthode

protected CssHandler ( HttpStaticFileServer Parameter ) : Task
Parameter NodeNetAsync.Net.Http.Static.HttpStaticFileServer
Résultat Task

LessHandler() protected méthode

protected LessHandler ( HttpStaticFileServer Parameter ) : Task
Parameter NodeNetAsync.Net.Http.Static.HttpStaticFileServer
Résultat Task

NodeNetLessFilter() public méthode

public NodeNetLessFilter ( bool Compressing = true ) : System
Compressing bool
Résultat System

TransformAsync() static protected méthode

static protected TransformAsync ( string LessCode, string FileName = "unknown.less" ) : Task
LessCode string
FileName string
Résultat Task

Property Details

Compressing protected_oe property

protected bool Compressing
Résultat bool

Config protected_oe static_oe property

protected static DotlessConfiguration,dotless.Core.configuration Config
Résultat dotless.Core.configuration.DotlessConfiguration

Engine protected_oe static_oe property

protected static ILessEngine Engine
Résultat ILessEngine