Table of Contents

Class TlumachTemplateOptionsExtensions

Namespace
Tlumach.Fluid
Assembly
Tlumach.Fluid.dll

Registers the Tlumach filters in Fluid TemplateOptions.

public static class TlumachTemplateOptionsExtensions
Inheritance
TlumachTemplateOptionsExtensions
Inherited Members

Methods

AddTlumach(TemplateOptions, TranslationManager, TlumachFluidOptions?)

Adds the filters t and t_html (names set by the options) that return translations from manager. Set TemplateContext.CultureInfo to the culture of each render, and render HTML templates with an HTML encoder.

public static TemplateOptions AddTlumach(this TemplateOptions options, TranslationManager manager, TlumachFluidOptions? tlumachOptions = null)

Parameters

options TemplateOptions

The template options to add the filters to.

manager TranslationManager

The translation manager to take the translations from.

tlumachOptions TlumachFluidOptions

The options, or null for the defaults.

Returns

TemplateOptions

options.