Click or drag to resize
HandlebarsViewEngineRegisterMvcHelpers Method
Registers the builtin helpers that act a lot like their Razor/WebForms counterpart site-wide in the HandlebarsConfiguration.

Namespace: HandlebarsDotNet.Mvc
Assembly: HandlebarsDotNet.Mvc (in HandlebarsDotNet.Mvc.dll) Version: 1.0.0-beta
Syntax
public virtual void RegisterMvcHelpers()
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