Namespace Azos.Templatization
Classes
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
DOMGenerator
Facilitates generation of DOM manipulation code a-la React/JSX
FileTemplateStringContentSource
Represents a string template source that comes from a file
LJSCompiler
Compiles templates based of text files that use Laconic Java Script language syntax. Note: This compiler supersedes TextJSTemplateCompiler
NHTCompiler
Compiles templates based of text files that use C# language syntax, First compiles by the TextJSTemplateCompiler then by the TextCSTemplateCompiler
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
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
TextJSTemplateCompiler
Compiles templates based of text files that use js language syntax, compiles config to inline function
Interfaces
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