C# 클래스 TinyTemplates.Template

Text templating engine in a file.
#field -> value of model property 'field' #{field} -> disambiguate, works with any expression #field.field -> traverse property of property ## -> # #|field (content) #. -> make items of enumerable property field into model wrt content #^field -> disambiguate when child and parent fields have same name (use parent) #$ -> the model itself
파일 보기 프로젝트 열기: sprache/Sprache

공개 메소드들

메소드 설명
Execute ( object model ) : string
Execute ( object model, TextWriter output ) : void
Template ( string templateText ) : System

메소드 상세

Execute() 공개 메소드

public Execute ( object model ) : string
model object
리턴 string

Execute() 공개 메소드

public Execute ( object model, TextWriter output ) : void
model object
output System.IO.TextWriter
리턴 void

Template() 공개 메소드

public Template ( string templateText ) : System
templateText string
리턴 System