C# Class Rebel.Cms.Web.Macros.MacroSyntaxParser

Utility class for parsing macro syntax in string content
Exibir arquivo Open project: RebelCMS/rebelcmsxu5 Class Usage Examples

Public Properties

Property Type Description
AliasMatch System.Text.RegularExpressions.Regex
MacroMatch System.Text.RegularExpressions.Regex
ParamMatch System.Text.RegularExpressions.Regex

Public Methods

Method Description
Parse ( string input, string>.Func macroFoundCallback, IEnumerable &results ) : string

Finds a macro placeholder amongst the input content (generally html) and renders the macro content into the output.

Method Details

Parse() public method

Finds a macro placeholder amongst the input content (generally html) and renders the macro content into the output.
public Parse ( string input, string>.Func macroFoundCallback, IEnumerable &results ) : string
input string
macroFoundCallback string>.Func Callback that is fired when a macro is found, this callback should return the macro contents based on the callback parameters
results IEnumerable
return string

Property Details

AliasMatch public_oe static_oe property

public static Regex,System.Text.RegularExpressions AliasMatch
return System.Text.RegularExpressions.Regex

MacroMatch public_oe static_oe property

public static Regex,System.Text.RegularExpressions MacroMatch
return System.Text.RegularExpressions.Regex

ParamMatch public_oe static_oe property

public static Regex,System.Text.RegularExpressions ParamMatch
return System.Text.RegularExpressions.Regex