C# 클래스 GnomeServer.TemplateHelper

파일 보기 프로젝트 열기: Rychard/GnomeServer

공개 메소드들

메소드 설명
GetTemplate ( String template ) : String

Gets the full content of a template.

GetTokenReplacements ( String title, List handlers, String body ) : String>.Dictionary

Gets a dictionary that contains standard replacement tokens using the specified values.

GetWebRoot ( ) : String

Gets the full path of the directory that is .

PopulateTemplate ( String template, String>.Dictionary tokenReplacements ) : String

Retrieves the template with the specified name, and returns the contents of the template after replacing instances of the dictionary keys from tokenReplacements with their coorresponding values.

The value of template should not include the file extension.

메소드 상세

GetTemplate() 공개 정적인 메소드

Gets the full content of a template.
public static GetTemplate ( String template ) : String
template String
리턴 String

GetTokenReplacements() 공개 정적인 메소드

Gets a dictionary that contains standard replacement tokens using the specified values.
public static GetTokenReplacements ( String title, List handlers, String body ) : String>.Dictionary
title String
handlers List
body String
리턴 String>.Dictionary

GetWebRoot() 공개 정적인 메소드

Gets the full path of the directory that is .
public static GetWebRoot ( ) : String
리턴 String

PopulateTemplate() 공개 정적인 메소드

Retrieves the template with the specified name, and returns the contents of the template after replacing instances of the dictionary keys from tokenReplacements with their coorresponding values.
The value of template should not include the file extension.
public static PopulateTemplate ( String template, String>.Dictionary tokenReplacements ) : String
template String The name of the template to populate.
tokenReplacements String>.Dictionary A dictionary containing key/value pairs for replacement.
리턴 String