Nucleus .Net Core CMS

HtmlHelperExtensions Class

Namespace: Nucleus.ViewFeatures
Assembly: Nucleus.ViewFeatures.dll
Extensions which use the HtmlHelper class.
Special token (~#) used by the AddScript and AddStyle html helpers to represent the extension path of the currently executing view.
Special token (~!) used by the AddScript and AddStyle html helpers to represent the path of the currently executing view.
ResolveExtensionUrl (IHtmlHelper helper, String url)
Generates an absolute url from the passed-in relative url after substituting ~! for the currently executing view path, or ~# for the currently executing extension.
Parameters
Name Type
helper Microsoft.AspNetCore.Mvc.Rendering.IHtmlHelper
url String
ResolveExtensionUrl (ViewContext viewContext, String url)
Generates an absolute url from the passed-in relative url after substituting ~! for the currently executing view path, or ~# for the currently executing extension.
Parameters
Name Type
viewContext Microsoft.AspNetCore.Mvc.Rendering.ViewContext
url String