Removed Html.RegisterLink/Meta helpers, these are on the base view instead (they aren't HTML helpers anymore)

--HG--
branch : dev
This commit is contained in:
Dave Reed
2010-09-17 12:25:05 -07:00
parent be3f092b54
commit c3f8dfa36a

View File

@@ -72,34 +72,6 @@ namespace Orchard.Mvc.Html {
return MvcHtmlString.Create(html.Encode(pageClassBuilder.ToString()));
}
public static void RegisterLink(this HtmlHelper html, string rel, string type, string href) {
RegisterLink(html, new LinkEntry {
Rel = rel,
Type = type,
Href = href
});
}
public static void RegisterLink(this HtmlHelper html, LinkEntry link) {
html.Resolve<IResourceManager>().RegisterLink(link);
}
public static void SetMeta(this HtmlHelper html, string name, string content) {
SetMeta(html, new MetaEntry { Name = name, Content = content });
}
public static void SetMeta(this HtmlHelper html, MetaEntry meta) {
html.Resolve<IResourceManager>().SetMeta(meta);
}
public static void AppendMeta(this HtmlHelper html, string name, string content, string contentSeparator) {
AppendMeta(html, new MetaEntry { Name = name, Content = content }, contentSeparator);
}
public static void AppendMeta(this HtmlHelper html, MetaEntry meta, string contentSeparator) {
html.Resolve<IResourceManager>().AppendMeta(meta, contentSeparator);
}
public static IDisposable Capture(this ViewUserControl control, string name) {
var writer = LayoutViewContext.From(control.ViewContext).GetNamedContent(name);
return new HtmlTextWriterScope(control.Writer, writer);