HandlebarsTemplateProvider

Namespace: Proffer.Templating.Handlebars

A provider handles and compiles templates using N:HandlebarsDotNet.

public class HandlebarsTemplateProvider : Proffer.Templating.ITemplateProvider

Inheritance ObjectHandlebarsTemplateProvider
Implements ITemplateProvider

Properties

MimeTypes

Gets the MIME types.

public ISet<string> MimeTypes { get; }

Property Value

ISet<String>

Extensions

Gets the extensions.

public ISet<string> Extensions { get; }

Property Value

ISet<String>

Constructors

HandlebarsTemplateProvider()

Initializes a new instance of the HandlebarsTemplateProvider class.

public HandlebarsTemplateProvider()

Methods

Compile(String)

Compiles the specified template content.

public ITemplate Compile(string templateContent)

Parameters

templateContent String
Content of the template.

Returns

ITemplate
A compiled .

CreateScope()

Creates a template provider scope.

public ITemplateProviderScope CreateScope()

Returns

ITemplateProviderScope

        A new templating provider scope.