C# 클래스 Castle.Components.Common.TemplateEngine.NVelocityTemplateEngine.NVelocityTemplateEngine

Implementation of ITemplateEngine that uses NVelocity
상속: ITemplateEngine, ISupportInitialize
파일 보기 프로젝트 열기: nats/castle-1.0.3-mono 1 사용 예제들

공개 메소드들

메소드 설명
AddResourceAssembly ( string assembly ) : void

Add an assembly to the resource collection.

BeginInit ( ) : void

Starts/configure NVelocity based on the properties.

EndInit ( ) : void
HasTemplate ( String templateName ) : bool

Returns true only if the specified template exists and can be used

NVelocityTemplateEngine ( ) : System

Constructs a NVelocityTemplateEngine instance assuming the default values

NVelocityTemplateEngine ( String templateDir ) : System

Constructs a NVelocityTemplateEngine instance specifing the template directory

Process ( IDictionary context, String templateName, TextWriter output ) : bool

Process the template with data from the context.

Process ( IDictionary context, string templateName, TextWriter output, TextReader inputTemplate ) : bool

Process the input template with data from the context.

Process ( IDictionary context, string templateName, TextWriter output, string inputTemplate ) : bool

Process the input template with data from the context.

비공개 메소드들

메소드 설명
CreateContext ( IDictionary context ) : IContext
ExpandTemplateDir ( String templateDir ) : String

메소드 상세

AddResourceAssembly() 공개 메소드

Add an assembly to the resource collection.
public AddResourceAssembly ( string assembly ) : void
assembly string
리턴 void

BeginInit() 공개 메소드

Starts/configure NVelocity based on the properties.
public BeginInit ( ) : void
리턴 void

EndInit() 공개 메소드

public EndInit ( ) : void
리턴 void

HasTemplate() 공개 메소드

Returns true only if the specified template exists and can be used
public HasTemplate ( String templateName ) : bool
templateName String
리턴 bool

NVelocityTemplateEngine() 공개 메소드

Constructs a NVelocityTemplateEngine instance assuming the default values
public NVelocityTemplateEngine ( ) : System
리턴 System

NVelocityTemplateEngine() 공개 메소드

Constructs a NVelocityTemplateEngine instance specifing the template directory
public NVelocityTemplateEngine ( String templateDir ) : System
templateDir String
리턴 System

Process() 공개 메소드

Process the template with data from the context.
public Process ( IDictionary context, String templateName, TextWriter output ) : bool
context IDictionary
templateName String
output System.IO.TextWriter
리턴 bool

Process() 공개 메소드

Process the input template with data from the context.
public Process ( IDictionary context, string templateName, TextWriter output, TextReader inputTemplate ) : bool
context IDictionary The context.
templateName string Name of the template. Used only for information during logging
output System.IO.TextWriter The output.
inputTemplate System.IO.TextReader The input template.
리턴 bool

Process() 공개 메소드

Process the input template with data from the context.
public Process ( IDictionary context, string templateName, TextWriter output, string inputTemplate ) : bool
context IDictionary The context.
templateName string Name of the template. Used only for information during logging
output System.IO.TextWriter The output.
inputTemplate string The input template.
리턴 bool