public static void AddConventions(this HtmlTagsConfiguration configuration, Action <HtmlConventionRegistry> conventionRegsitryConfigurator) { var conventionRegistry = new HtmlConventionRegistry(); conventionRegsitryConfigurator(conventionRegistry); configuration.AddConventions(conventionRegistry); }
public static void UseFoundationConventions(this HtmlTagsConfiguration configuration, Action <FoundationHtmlConventions> conventionConfiguration = null) { configuration.AddConventions(new FoundationHtmlConventions(conventionConfiguration)); configuration.DefaultFormBlockBuilderFactory = () => new FoundationFormBlockBuilder(); }
public static void UseDefaultHtmlConventions(this HtmlTagsConfiguration configuration, Action <AspNetMvcHtmlConventions> conventionConfiguration = null) { configuration.AddConventions(new AspNetMvcHtmlConventions(conventionConfiguration)); }
public static void UseBootstrapConventions(this HtmlTagsConfiguration configuration, Action <BootstrapHtmlConventions> conventionConfiguration = null) { configuration.AddConventions(new BootstrapHtmlConventions(conventionConfiguration)); configuration.DefaultFormBlockBuilderFactory = () => new BootstrapFormBlockBuilder(); }