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
Show file Open project: soywiz/NodeNetAsync

Protected Properties

Property Type Description
Compressing bool
Config dotless.Core.configuration.DotlessConfiguration
Engine ILessEngine

Public Methods

Method Description
NodeNetLessFilter ( bool Compressing = true ) : System

Protected Methods

Method Description
CssHandler ( HttpStaticFileServer Parameter ) : Task

LessHandler ( HttpStaticFileServer Parameter ) : Task

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

Private Methods

Method Description
IHttpStaticFilter ( HttpStaticFileServer HttpStaticFileServer ) : void

Method Details

CssHandler() protected method

protected CssHandler ( HttpStaticFileServer Parameter ) : Task
Parameter NodeNetAsync.Net.Http.Static.HttpStaticFileServer
return Task

LessHandler() protected method

protected LessHandler ( HttpStaticFileServer Parameter ) : Task
Parameter NodeNetAsync.Net.Http.Static.HttpStaticFileServer
return Task

NodeNetLessFilter() public method

public NodeNetLessFilter ( bool Compressing = true ) : System
Compressing bool
return System

TransformAsync() static protected method

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

Property Details

Compressing protected property

protected bool Compressing
return bool

Config protected static property

protected static DotlessConfiguration,dotless.Core.configuration Config
return dotless.Core.configuration.DotlessConfiguration

Engine protected static property

protected static ILessEngine Engine
return ILessEngine