Instantly share code, notes, and snippets.

Embed
What would you like to do?
public static class FluentTagBuilderHelperExtensions
{
public static FluentTagBuilder Tag(this HtmlHelper helper, string tagName)
{
return new FluentTagBuilder(tagName);
}
public static HtmlString DynamicPlaceholder(this SitecoreHelper sitecoreHelper, string placeholderName,
FluentTagBuilder chrome, int count = 1, int maxCount = 0, int seed = 0)
{
return sitecoreHelper.DynamicPlaceholder(placeholderName, chrome.InnerBuilder, count, maxCount, seed);
}
public static HtmlString DynamicPlaceholder(this SitecoreHelper sitecoreHelper, string placeholderName,
Func<DynamicPlaceholderRenderContext, FluentTagBuilder> chromeResolver, int count = 1, int maxCount = 0,
int seed = 0)
{
return sitecoreHelper.DynamicPlaceholder(placeholderName, c => chromeResolver(c).InnerBuilder, count,
maxCount, seed);
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment