C# Class Alpinely.TownCrier.TemplateParser

Template parser which uses JQuery Templating style tokens such as {%=FirstName%} Tokens are case-insensitive
Inheritance: ITemplateParser
显示文件 Open project: endeavour/town-crier Class Usage Examples

Protected Properties

Property Type Description
RegExString string
RegExToken System.Text.RegularExpressions.Regex

Public Methods

Method Description
ReplaceTokens ( string templateText, string>.IDictionary tokenValues ) : string

Replaces tokens in the template text with the values from the supplied dictionary

TemplateParser ( ) : System

Method Details

ReplaceTokens() public method

Replaces tokens in the template text with the values from the supplied dictionary
public ReplaceTokens ( string templateText, string>.IDictionary tokenValues ) : string
templateText string The template text
tokenValues string>.IDictionary Dictionary mapping token names to values
return string

TemplateParser() public method

public TemplateParser ( ) : System
return System

Property Details

RegExString protected_oe property

protected string RegExString
return string

RegExToken protected_oe property

protected Regex,System.Text.RegularExpressions RegExToken
return System.Text.RegularExpressions.Regex