C# Класс LibSassHost.SassCompiler

Sass-compiler
Наследование: IDisposable
Показать файл Открыть проект Примеры использования класса

Открытые методы

Метод Описание
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

Приватные методы

Метод Описание
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

Описание методов

Compile() публичный Метод

"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
Результат CompilationResult

CompileFile() публичный Метод

"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
Результат CompilationResult

Dispose() публичный Метод

Destroys object
public Dispose ( ) : void
Результат void

SassCompiler() публичный Метод

Constructs a instance of Sass-compiler
public SassCompiler ( IFileManager fileManager ) : System
fileManager IFileManager File manager
Результат System