C# Класс Rebel.Cms.Web.Macros.MacroSyntaxParser

Utility class for parsing macro syntax in string content
Показать файл Открыть проект Примеры использования класса

Открытые свойства

Свойство Тип Описание
AliasMatch System.Text.RegularExpressions.Regex
MacroMatch System.Text.RegularExpressions.Regex
ParamMatch System.Text.RegularExpressions.Regex

Открытые методы

Метод Описание
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.

Описание методов

Parse() публичный Метод

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
Результат string

Описание свойств

AliasMatch публичное статическое свойство

public static Regex,System.Text.RegularExpressions AliasMatch
Результат System.Text.RegularExpressions.Regex

MacroMatch публичное статическое свойство

public static Regex,System.Text.RegularExpressions MacroMatch
Результат System.Text.RegularExpressions.Regex

ParamMatch публичное статическое свойство

public static Regex,System.Text.RegularExpressions ParamMatch
Результат System.Text.RegularExpressions.Regex