Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
23 changes: 21 additions & 2 deletions ClientDependency.Mvc/HtmlHelperExtensions.cs
Original file line number Diff line number Diff line change
Expand Up @@ -131,7 +131,6 @@ public static HtmlHelper RequiresJs(this HtmlHelper html, string filePath, int p
return html;
}


public static HtmlHelper RequiresJs(this HtmlHelper html, string filePath, object htmlAttributes)
{
html.ViewContext.GetLoader().RegisterDependency(filePath, ClientDependencyType.Javascript, htmlAttributes);
Expand Down Expand Up @@ -271,7 +270,27 @@ public static IHtmlString RenderJsHere(this HtmlHelper html, string rendererName
ClientDependencyType.Javascript, rendererName, Enumerable.Empty<IClientDependencyPath>()));
}
#endregion


#region RenderJsBundleHere Extensions

public static IHtmlString RenderJsBundleHere(this HtmlHelper html, string bundleName)
{
html.RequiresJsBundle(bundleName);
return html.RenderJsHere(bundleName);
}

#endregion

#region RenderCssBundleHere Extensions

public static IHtmlString RenderCssBundleHere(this HtmlHelper html, string bundleName)
{
html.RequiresCssBundle(bundleName);
return html.RenderCssHere(bundleName);
}

#endregion

#region RenderCssHere Extensions
public static IHtmlString RenderCssHere(this HtmlHelper html)
{
Expand Down