Skip to main content

Type Alias: TemplateAnalysisOptions

TemplateAnalysisOptions: object

Options passed to Template.analyze and Template.analyzeSync.

Type declaration

followPartials?

optional followPartials: boolean

If true, we will try to load partial templates and analyze those templates too.

Default Value

true.

raiseForFailures?

optional raiseForFailures: boolean

If true, we will throw an error if an ast.Node or expression.Expression does not define a children() method, or if a partial template can not be loaded. When false, no error is thrown and an mapping of failed nodes and expressions is available as the failedVisits property of the resulting TemplateAnalysis object.

Defined in

src/static_analysis.ts:38