Specifies a block helper to be registered for each page based on the current input
document and context.
- Namespace
- Statiq
.Handlebars - Containing Type
- RenderHandlebars
Syntax
public RenderHandlebars WithBlockHelper(string name, Config<HandlebarsBlockHelper> blockHelper)
Parameters
Name | Type | Description |
---|---|---|
name | string | The name of the block helper. |
blockHelper | Config |
A delegate that returns the block helper. |
Return Value
Type | Description |
---|---|
RenderHandlebars | The current module instance. |