C# Class DotSmart.LessCssHandler

Inheritance: ScriptHandlerBase
ファイルを表示 Open project: duncansmart/LessCoffee

Public Methods

Method Description
GetDependencies ( string lessFilePath ) : string[]

Returns an array of file names representing all of the dependencies of the specified *.less file (not including itself).

GetLastModified ( string lessFilePath ) : System.DateTime

Gets the most recent modified date of the specified *.less file and all of its dependecies

RenderCss ( string lessFilePath, TextWriter output, bool compress = true, string lessPrologue = null, string lessPostscript = null, string lineNumbers = null ) : void

Protected Methods

Method Description
GetFileDependencies ( string physicalFileName ) : IEnumerable
Render ( string physicalFileName, TextWriter output ) : void

Private Methods

Method Description
LessCssHandler ( ) : System

Initializes a new instance of the LessCssHandler class.

renderStylesheet ( string lessFilePath, TextWriter output ) : bool

Method Details

GetDependencies() public static method

Returns an array of file names representing all of the dependencies of the specified *.less file (not including itself).
public static GetDependencies ( string lessFilePath ) : string[]
lessFilePath string
return string[]

GetFileDependencies() protected method

protected GetFileDependencies ( string physicalFileName ) : IEnumerable
physicalFileName string
return IEnumerable

GetLastModified() public static method

Gets the most recent modified date of the specified *.less file and all of its dependecies
public static GetLastModified ( string lessFilePath ) : System.DateTime
lessFilePath string
return System.DateTime

Render() protected method

protected Render ( string physicalFileName, TextWriter output ) : void
physicalFileName string
output System.IO.TextWriter
return void

RenderCss() public static method

public static RenderCss ( string lessFilePath, TextWriter output, bool compress = true, string lessPrologue = null, string lessPostscript = null, string lineNumbers = null ) : void
lessFilePath string
output System.IO.TextWriter
compress bool
lessPrologue string
lessPostscript string
lineNumbers string
return void