C# Class Cottle.Documents.DynamicDocument

Dynamic document compiles template using MSIL generation for better performance. Code generated by JIT compiler can be reclaimed by garbage collector, but you should use a caching mechanism to avoid re-creating too many DynamicDocument instances using the same template source.
Inheritance: AbstractDocument
Datei anzeigen Open project: r3c/cottle

Public Methods

Method Description
DynamicDocument ( TextReader reader ) : System
DynamicDocument ( TextReader reader, ISetting setting ) : System
DynamicDocument ( string template ) : System
DynamicDocument ( string template, ISetting setting ) : System
Render ( IStore store, TextWriter writer ) : Value

Method Details

DynamicDocument() public method

public DynamicDocument ( TextReader reader ) : System
reader System.IO.TextReader
return System

DynamicDocument() public method

public DynamicDocument ( TextReader reader, ISetting setting ) : System
reader System.IO.TextReader
setting ISetting
return System

DynamicDocument() public method

public DynamicDocument ( string template ) : System
template string
return System

DynamicDocument() public method

public DynamicDocument ( string template, ISetting setting ) : System
template string
setting ISetting
return System

Render() public method

public Render ( IStore store, TextWriter writer ) : Value
store IStore
writer System.IO.TextWriter
return Value