Class NHTCompiler
Compiles templates based of text files that use C# language syntax, First compiles by the TextJSTemplateCompiler then by the TextCSTemplateCompiler
Implements
System.IDisposable
System.Collections.Generic.IEnumerable<CompileUnit>
System.Collections.IEnumerable
Inherited Members
System.Object.Equals(System.Object)
System.Object.Equals(System.Object, System.Object)
System.Object.GetHashCode()
System.Object.GetType()
System.Object.MemberwiseClone()
System.Object.ReferenceEquals(System.Object, System.Object)
System.Object.ToString()
Namespace: NFX.Templatization
Assembly: NFX.dll
Syntax
public class NHTCompiler : TextCSTemplateCompiler, IDisposable, IConfigurable, IEnumerable<CompileUnit>, IEnumerable
Constructors
NHTCompiler()
Declaration
public NHTCompiler()
NHTCompiler(ITemplateSource<String>[])
Declaration
public NHTCompiler(params ITemplateSource<string>[] sources)
Parameters
Type | Name | Description |
---|---|---|
ITemplateSource<System.String>[] | sources |
NHTCompiler(IEnumerable<ITemplateSource<String>>)
Declaration
public NHTCompiler(IEnumerable<ITemplateSource<string>> sources)
Parameters
Type | Name | Description |
---|---|---|
System.Collections.Generic.IEnumerable<ITemplateSource<System.String>> | sources |
Fields
CONFIG_JS_COMPILER_SECT
Declaration
public const string CONFIG_JS_COMPILER_SECT = "jsopt"
Field Value
Type | Description |
---|---|
System.String |
Properties
JSConfigStr
Declaration
[Config("$jsopt")]
public string JSConfigStr { get; set; }
Property Value
Type | Description |
---|---|
System.String |
LanguageName
Declaration
public override string LanguageName { get; }
Property Value
Type | Description |
---|---|
System.String |
Overrides
LanguageSourceFileExtension
Declaration
public override string LanguageSourceFileExtension { get; }
Property Value
Type | Description |
---|---|
System.String |
Overrides
Methods
GetCompileUnitSourceContent(CompileUnit, out String)
Declaration
protected override string GetCompileUnitSourceContent(CompileUnit unit, out string className)
Parameters
Type | Name | Description |
---|---|---|
CompileUnit | unit | |
System.String | className |
Returns
Type | Description |
---|---|
System.String |
Overrides
getJSCompiler()
Declaration
public TextJSTemplateCompiler getJSCompiler()
Returns
Type | Description |
---|---|
TextJSTemplateCompiler |
Implements
System.IDisposable
System.Collections.Generic.IEnumerable<T>
System.Collections.IEnumerable