C# Class Alpinely.TownCrier.TemplateParser

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

Protected Properties

Свойство Type Description
RegExString string
RegExToken System.Text.RegularExpressions.Regex

Méthodes publiques

Méthode 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 méthode

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
Résultat string

TemplateParser() public méthode

public TemplateParser ( ) : System
Résultat System

Property Details

RegExString protected_oe property

protected string RegExString
Résultat string

RegExToken protected_oe property

protected Regex,System.Text.RegularExpressions RegExToken
Résultat System.Text.RegularExpressions.Regex