C# Class LibSassHost.SassCompiler

Sass-compiler
Inheritance: IDisposable
Datei anzeigen Open project: Taritsyn/LibSassHost Class Usage Examples

Public Methods

Method Description
Compile ( string content, string inputPath = null, string outputPath = null, CompilationOptions options = null ) : CompilationResult

"Compiles" a Sass-code to CSS-code

CompileFile ( string inputPath, string outputPath = null, CompilationOptions options = null ) : CompilationResult

"Compiles" a Sass-file to CSS-code

Dispose ( ) : void

Destroys object

SassCompiler ( IFileManager fileManager ) : System

Constructs a instance of Sass-compiler

Private Methods

Method Description
BeginCompile ( SassContext context, string inputPath, string outputPath, CompilationOptions options ) : void
Dispose ( bool disposing ) : void

Destroys object

EndCompile ( SassContext context ) : CompilationResult
GetIndentString ( IndentType type, int width ) : string
GetLineFeedString ( LineFeedType type ) : string
SassCompiler ( ) : System

Static constructor

Method Details

Compile() public method

"Compiles" a Sass-code to CSS-code
public Compile ( string content, string inputPath = null, string outputPath = null, CompilationOptions options = null ) : CompilationResult
content string Text content written on Sass
inputPath string Path to input file
outputPath string Path to output file
options CompilationOptions Compilation options
return CompilationResult

CompileFile() public method

"Compiles" a Sass-file to CSS-code
public CompileFile ( string inputPath, string outputPath = null, CompilationOptions options = null ) : CompilationResult
inputPath string Path to input file
outputPath string Path to output file
options CompilationOptions Compilation options
return CompilationResult

Dispose() public method

Destroys object
public Dispose ( ) : void
return void

SassCompiler() public method

Constructs a instance of Sass-compiler
public SassCompiler ( IFileManager fileManager ) : System
fileManager IFileManager File manager
return System