Click or drag to resize
HandlebarsViewEngineRegisterHelper Method (String, HandlebarsBlockHelper)
Registers a block helper in this view engine's global configuration.

Namespace: HandlebarsDotNet.Mvc
Assembly: HandlebarsDotNet.Mvc (in HandlebarsDotNet.Mvc.dll) Version: 1.0.0-beta
Syntax
public virtual void RegisterHelper(
	string helperName,
	HandlebarsBlockHelper helperFunction
)

Parameters

helperName
Type: SystemString
The name of the block helper.
helperFunction
Type: HandlebarsBlockHelper
The function body for this helper.
Remarks
If you call this after the view engine has been registered, you need to call the ClearCache(ControllerContext) method.
See Also