 | HandlebarsViewEngineRegisterTemplate Method |
Registers a template in this view engine's global configuration.
Namespace: HandlebarsDotNet.MvcAssembly: HandlebarsDotNet.Mvc (in HandlebarsDotNet.Mvc.dll) Version: 1.0.0-beta
Syntaxpublic virtual void RegisterTemplate(
string templateName,
Action<TextWriter, Object> templateBody
)
Public Overridable Sub RegisterTemplate (
templateName As String,
templateBody As Action(Of TextWriter, Object)
)
public:
virtual void RegisterTemplate(
String^ templateName,
Action<TextWriter^, Object^>^ templateBody
)
abstract RegisterTemplate :
templateName : string *
templateBody : Action<TextWriter, Object> -> unit
override RegisterTemplate :
templateName : string *
templateBody : Action<TextWriter, Object> -> unit Parameters
- templateName
- Type: SystemString
The name of the template. - templateBody
- Type: SystemActionTextWriter, Object
The template action body.
See Also