Nucleus .Net Core CMS

TagHelpers.UrlTagHelper Class

Namespace: Nucleus.ViewFeatures.TagHelpers
Assembly: Nucleus.ViewFeatures.dll
TagHelper which handles the Nucleus ~! (path of the currently executing view) and ~# (path of the currently executing Nucleus extension) prefixes in elements which can have an attribute which represents an Url.

Remarks

Some code copied from https://github.com/dotnet/aspnetcore/blob/main/src/Mvc/Mvc.Razor/src/TagHelpers/UrlResolutionTagHelper.cs

Properties

ViewContext Property

Provides access to view context.

Methods

ProcessAsync (TagHelperContext,TagHelperOutput) Method

ProcessAsync (TagHelperContext context, TagHelperOutput output)
Handle ~! and ~# prefixes for element attributes which can contain Urls.

ProcessUrlAttribute (String,TagHelperOutput) Method

ProcessUrlAttribute (String attributeName, TagHelperOutput output)
Handle ~! and ~# prefix for the attribute name specified by attributeName.
Parameters
Name Type
attributeName String
output Microsoft.AspNetCore.Razor.TagHelpers.TagHelperOutput