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
handlebarsIHandlebarsThe Handlebars environment, e.g. from
Handlebars.Create().managerTranslationManagerThe translation manager to take the translations from.
optionsTlumachHandlebarsOptionsThe options, or null for the defaults.
Returns
- IHandlebars
handlebars.