Table of Contents

Class TlumachHandlebarsExtensions

Namespace
Tlumach.HandlebarsNet
Assembly
Tlumach.HandlebarsNet.dll

Registers the Tlumach helpers in a Handlebars.Net environment.

public static class TlumachHandlebarsExtensions
Inheritance
TlumachHandlebarsExtensions
Inherited Members

Methods

RegisterTlumach(IHandlebars, TranslationManager, TlumachHandlebarsOptions?)

Registers the helpers t and t_html (names set by the options) that return translations from manager. Pass the culture of each render as data: template(model, new { culture }).

public static IHandlebars RegisterTlumach(this IHandlebars handlebars, TranslationManager manager, TlumachHandlebarsOptions? options = null)

Parameters

handlebars IHandlebars

The Handlebars environment, e.g. from Handlebars.Create().

manager TranslationManager

The translation manager to take the translations from.

options TlumachHandlebarsOptions

The options, or null for the defaults.

Returns

IHandlebars

handlebars.