/// <summary> /// Add meta keyword element to the <![CDATA[<head>]]> /// </summary> /// <param name="html">HTML helper</param> /// <param name="part">Meta keyword part</param> public static void AddMetaKeywordParts(this IHtmlHelper html, string part) { IPageHeadBuilder pageHeadBuilder = ServiceProviderFactory.ServiceProvider.GetService <IPageHeadBuilder>(); pageHeadBuilder.AddMetaKeywordParts(part); }
/// <summary> /// Add meta keyword element to the <![CDATA[<head>]]> /// </summary> /// <param name="html">HTML helper</param> /// <param name="part">Meta keyword part</param> /// <param name="pageHeadBuilder"></param> public static void AddMetaKeywordParts(this HtmlHelper html, string part, IPageHeadBuilder pageHeadBuilder = null) { if (pageHeadBuilder == null) pageHeadBuilder = EngineContext.Current.Resolve<IPageHeadBuilder>(); pageHeadBuilder.AddMetaKeywordParts(part); }