C# Class JinianNet.JNTemplate.Template

模板实例类
Inheritance: JinianNet.JNTemplate.Parser.Node.BlockTag, ITemplate
Show file Open project: jiniannet/jntemplate Class Usage Examples

Public Methods

Method Description
Render ( ) : String

模板解析结果呈现

Set ( Object>.Dictionary dic ) : void

批量设置数据

Set ( String key, Object value ) : void

设置数据

Template ( ) : System

Template

Template ( String text ) : System

Template

Template ( TemplateContext ctx, String text ) : System

Template

Method Details

Render() public method

模板解析结果呈现
public Render ( ) : String
return String

Set() public method

批量设置数据
public Set ( Object>.Dictionary dic ) : void
dic Object>.Dictionary 字典
return void

Set() public method

设置数据
public Set ( String key, Object value ) : void
key String
value Object
return void

Template() public method

Template
public Template ( ) : System
return System

Template() public method

Template
public Template ( String text ) : System
text String 模板内容
return System

Template() public method

Template
public Template ( TemplateContext ctx, String text ) : System
ctx TemplateContext TemplateContext 对象
text String 模板内容
return System