 | HandlebarsViewEngineRegisterMvcHelpers Method |
Registers the builtin helpers that act a lot like their Razor/WebForms counterpart site-wide in the
HandlebarsConfiguration.
Namespace: HandlebarsDotNet.MvcAssembly: HandlebarsDotNet.Mvc (in HandlebarsDotNet.Mvc.dll) Version: 1.0.0-beta
Syntaxpublic virtual void RegisterMvcHelpers()
Public Overridable Sub RegisterMvcHelpers
public:
virtual void RegisterMvcHelpers()
abstract RegisterMvcHelpers : unit -> unit
override RegisterMvcHelpers : unit -> unit
Remarks
These are the ones registered if this is called.
From the
Url namespace
- url_action - Generates a fully qualified URL to an action method.
- url_content - Converts a virtual (relative) path to an application absolute path and renders the result.
- url_encode - Encodes text so it is usable in a URL.
From the
Html namespace:
- html_antiforgerytoken - Generates a hidden form field (anti-forgery token) that is validated when the form is submitted.
- html_renderaction - Invokes the child action method using the specified parameters and renders the result inline in the parent view.
The ones related to bundling:
See Also