Interface PartialScope

Scope information used when analyzing partial templates.

interface PartialScope {
    isolated: boolean;
    name: string;
    scope: Iterable<string | [string, Argument]>;
}

Properties

Properties

isolated: boolean

If true, names in scope will be added to a new, isolated scope before analyzing any child templates, without access to the parent template's scope.

name: string

The name of the partial template. We need this to make sure we only analyze each template once.

scope: Iterable<string | [string, Argument]>

A list of names that will be in scope for the child template.

If an item is a [string, Argument] tuple, the string is considered an alias for the argument.