C# Class RazorTex.RazorCompiler

显示文件 Open project: cmenge/RazorTex

Public Methods

Method Description
CreateTemplate ( string template, IEnumerable additionalNamespaces, Type modelType = null ) : ILatexTemplate

Creates a ILatexTemplate from the specified template string.

RazorCompiler ( IRazorProvider provider ) : System

Initialises a new instance of RazorCompiler.

Private Methods

Method Description
Compile ( string className, string template, IEnumerable additionalNamespaces, Type modelType = null ) : CompilerResults

Method Details

CreateTemplate() public method

Creates a ILatexTemplate from the specified template string.
public CreateTemplate ( string template, IEnumerable additionalNamespaces, Type modelType = null ) : ILatexTemplate
template string The template to compile.
additionalNamespaces IEnumerable
modelType System.Type [Optional] The model type.
return ILatexTemplate

RazorCompiler() public method

Initialises a new instance of RazorCompiler.
public RazorCompiler ( IRazorProvider provider ) : System
provider IRazorProvider The provider used to compile templates.
return System