[This is preliminary documentation and is subject to change.]
Defines base template types and compilers
Classes
Class | Description | |
---|---|---|
![]() | CompileUnit |
Represents a compilation unit which is compiled by TemplateCompiler.
Use TemplateCompiler.IncludeTemplateSource() method or pass sources to .ctor
|
![]() | CompileUnits |
Represents a bag of compile units
|
![]() | FileTemplateStringContentSource |
Represents a string template source that comes from a file
|
![]() | StringRenderingTarget |
Renders templates into string
|
![]() | Template TContext, TTarget, TRenderingContext |
A general ancestor for any template. All templates derive from this class directly or indirectly.
A template is a class that gets instantiated at some point to Render() its content into IRenderingTarget instance.
Templates are not necessarily text-based, i.e. they can be image-based or based on various kinds of binary files
|
![]() | TemplateCodeCompilerException |
Thrown by template code compilers
|
![]() | TemplateCompiler |
Represents abstraction of template compilers. This class is not thread-safe
|
![]() | TemplateCompilerException |
Base exception thrown by the template compilers
|
![]() | TemplateParseException |
Indicates template source parsing exception
|
![]() | TemplateStringContentSource |
Represents a string template source that comes from a string
|
![]() | TemplatizationException |
Base exception thrown by the templatization-related functionality
|
![]() | TextCSTemplateCompiler |
Compiles templates based of text files that use C# language syntax
|
Interfaces
Interface | Description | |
---|---|---|
![]() | IRenderingTarget |
Defines an entity that a template can be rendered into.
Templates are not necessarily text-based, consequently data is supplied as objects
|
![]() | ITemplate |
A general template interface.
A template is a class that gets instantiated at some point to Render() its content into IRenderingTarget instance.
Templates are not necessarily text-based, i.e. they can be image-based or based on various kinds of binary files
|
![]() | ITemplateSource |
Describes an entity that provides source for template
|
![]() | ITemplateSource T |
Describes an entity that provides source for templates
|