NFX.Templatization NamespaceNFX Class Library

[This is preliminary documentation and is subject to change.]

Defines base template types and compilers
Classes

  ClassDescription
Public classCompileUnit
Represents a compilation unit which is compiled by TemplateCompiler. Use TemplateCompiler.IncludeTemplateSource() method or pass sources to .ctor
Public classCompileUnits
Represents a bag of compile units
Public classFileTemplateStringContentSource
Represents a string template source that comes from a file
Public classStringRenderingTarget
Renders templates into string
Public classTemplate 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
Public classTemplateCodeCompilerException
Thrown by template code compilers
Public classTemplateCompiler
Represents abstraction of template compilers. This class is not thread-safe
Public classTemplateCompilerException
Base exception thrown by the template compilers
Public classTemplateParseException
Indicates template source parsing exception
Public classTemplateStringContentSource
Represents a string template source that comes from a string
Public classTemplatizationException
Base exception thrown by the templatization-related functionality
Public classTextCSTemplateCompiler
Compiles templates based of text files that use C# language syntax
Interfaces

  InterfaceDescription
Public interfaceIRenderingTarget
Defines an entity that a template can be rendered into. Templates are not necessarily text-based, consequently data is supplied as objects
Public interfaceITemplate
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
Public interfaceITemplateSource
Describes an entity that provides source for template
Public interfaceITemplateSource T 
Describes an entity that provides source for templates