/// <summary>
        /// This HtmlHelper renders title and meta tags based on
        /// current site settings and current item settings.
        /// </summary>
        /// <param name="helper"></param>
        /// <returns></returns>
        public static MvcHtmlString GetMetaTags(this HtmlHelper helper)
        {
            MetaTagManager manager = new MetaTagManager();

            return(new MvcHtmlString(manager.GetMetaTags()));
        }
Exemple #2
0
        protected override void RenderContents(HtmlTextWriter output)
        {
            MetaTagManager manager = new MetaTagManager();

            output.Write(manager.GetMetaTags());
        }