Interface 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
Namespace: Azos.Templatization
Assembly: Azos.dll
Syntax
public interface ITemplate
Properties
CanReuseInstance
Indicates whether an instance of template class may be reused for invocation of Render() more than once (possibly with different rendering target and/or rendering context)
Declaration
bool CanReuseInstance { get; }
Property Value
Type | Description |
---|---|
System.Boolean |
Context
Custom context for the lifetime of this template
Declaration
object Context { get; }
Property Value
Type | Description |
---|---|
System.Object |
Methods
Render(IRenderingTarget, Object)
Renders template by generating content into target
Declaration
void Render(IRenderingTarget target, object renderingContext)
Parameters
Type | Name | Description |
---|---|---|
IRenderingTarget | target | A target that rendering is done into |
System.Object | renderingContext | A context object for this rendering call |