Type Alias TwingEnvironmentOptions

TwingEnvironmentOptions: {
    autoEscapingStrategy?: string;
    cache?: TwingCache;
    charset?: string;
    dateFormat?: string;
    dateIntervalFormat?: string;
    globals?: Record<string, any>;
    numberFormat?: TwingNumberFormat;
    parserOptions?: TwingParserOptions;
    sandboxPolicy?: TwingSandboxSecurityPolicy;
    timezone?: string;
}

Type declaration

  • OptionalautoEscapingStrategy?: string

    The implicit auto-escaping strategy to apply to the templates.

    Analogous to adding an autoescape tag at the top of each loaded template.

  • Optionalcache?: TwingCache

    The persistent cache instance.

  • Optionalcharset?: string

    The default charset. Defaults to "UTF-8".

  • OptionaldateFormat?: string
  • OptionaldateIntervalFormat?: string
  • Optionalglobals?: Record<string, any>
  • OptionalnumberFormat?: TwingNumberFormat
  • OptionalparserOptions?: TwingParserOptions
  • OptionalsandboxPolicy?: TwingSandboxSecurityPolicy
  • Optionaltimezone?: string