Nucleus .Net Core CMS

HtmlHelperExtensions Class

Namespace: Nucleus.ViewFeatures
Assembly: Nucleus.ViewFeatures.dll
Extensions which use the HtmlHelper class.

Fields

VIEWPATH_TOKEN Field

Special token (~!) used by the AddScript and AddStyle html helpers to represent the path of the currently executing view.

EXTENSIONPATH_TOKEN Field

Special token (~#) used by the AddScript and AddStyle html helpers to represent the extension path of the currently executing view.

Methods

ResolveExtensionUrl (IHtmlHelper,String) Method

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,String) Method

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