Adds a new template.
- Namespace
- Statiq
.Web - Containing Type
- Bootstrapper
Template Extensions
Syntax
public static TBootstrapper AddTemplate<TBootstrapper>(this TBootstrapper bootstrapper, string mediaType, ContentType contentType, Phase phase, IModule module)
where TBootstrapper : IBootstrapper
Type Parameters
Name | Description |
---|---|
TBootstrapper |
Parameters
Name | Type | Description |
---|---|---|
bootstrapper | TBootstrapper | The current bootstrapper. |
mediaType | string | The media type this template applies to. |
contentType | ContentType | The type of content this template applies to. |
phase | Phase | The phase this template applies to (Process or PostProcess ). |
module | IModule | The template module to execute. |
Return Value
Type | Description |
---|---|
TBootstrapper | The bootstrapper. |