Click or drag to resize
HandlebarsViewEngineRegisterTemplate Method
Registers a template 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 RegisterTemplate(
	string templateName,
	Action<TextWriter, Object> templateBody
)

Parameters

templateName
Type: SystemString
The name of the template.
templateBody
Type: SystemActionTextWriter, Object
The template action body.
See Also