C# Class LibSassHost.SassCompiler

Sass-compiler
Inheritance: IDisposable
Afficher le fichier Open project: Taritsyn/LibSassHost Class Usage Examples

Méthodes publiques

Méthode 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

Méthode 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 méthode

"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
Résultat CompilationResult

CompileFile() public méthode

"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
Résultat CompilationResult

Dispose() public méthode

Destroys object
public Dispose ( ) : void
Résultat void

SassCompiler() public méthode

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