Documentation
    Preparing search index...

    Type Alias TwingEnvironmentOptions

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

    Properties

    autoEscapingStrategy?: string

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

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

    cache?: TwingCache

    The persistent cache instance.

    charset?: string

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

    dateFormat?: string
    dateIntervalFormat?: string
    globals?: Record<string, any>
    numberFormat?: TwingNumberFormat
    parserOptions?: TwingParserOptions
    timezone?: string