Table of Contents

Class TlumachHandlebarsOptions

Namespace
Tlumach.HandlebarsNet
Assembly
Tlumach.HandlebarsNet.dll

The options of the Handlebars.Net integration, set up by RegisterTlumach(IHandlebars, TranslationManager, TlumachHandlebarsOptions?).

public sealed class TlumachHandlebarsOptions : TemplateTranslationOptions
Inheritance
TlumachHandlebarsOptions
Inherited Members

Properties

CultureDataName

Gets or sets the name of the @data variable that holds the culture of a render (a CultureInfo or a culture name), passed as the data of the template, e.g. template(model, new { culture = "de" }). The default is "culture".

public string CultureDataName { get; set; }

Property Value

string

HelperName

Gets or sets the name of the helper that returns a translation as text. The default is "t".

public string HelperName { get; set; }

Property Value

string

MarkupHelperName

Gets or sets the name of the helper that returns a translation, which contains trusted HTML, with HTML-encoded values. The default is "t_html". null or an empty string means the helper is not registered.

public string? MarkupHelperName { get; set; }

Property Value

string