Interface IRenderingTarget
Defines an entity that a template can be rendered into. Templates are not necessarily text-based, consequently data is supplied as objects
Namespace: Azos.Templatization
Assembly: Azos.dll
Syntax
public interface IRenderingTarget
Methods
Encode(Object)
Encodes an object per underlying target specification. For example, a Http-related target may encode strings using HttpEncoder. If particular target does not support encoding then this method should just return the argument unmodified
Declaration
object Encode(object value)
Parameters
Type | Name | Description |
---|---|---|
System.Object | value |
Returns
Type | Description |
---|---|
System.Object |
Flush()
Flushes writes into underlying target implementation. If target does not support buffering then this call does nothing
Declaration
void Flush()
Write(Object)
Writes a generic object into target. Templates are not necessarily text-based, consequently this method takes an object argument
Declaration
void Write(object value)
Parameters
Type | Name | Description |
---|---|---|
System.Object | value |