Module

analysis.config

Analysis configuration for template introspection.

Allows customization of naming conventions for different frameworks.

Classes

AnalysisConfig 4
Configuration for template analysis. Allows customization of naming conventions for cache scope in…

Configuration for template analysis.

Allows customization of naming conventions for cache scope inference. Frameworks can override defaults for their specific conventions.

Attributes

Name Type Description
page_prefixes frozenset[str]

Variable prefixes indicating per-page scope. Variables starting with these are considered page-specific and blocks using them get cache_scope="page".

site_prefixes frozenset[str]

Variable prefixes indicating site-wide scope. Variables starting with these are considered site-wide and blocks using only these get cache_scope="site".

extra_pure_functions frozenset[str]

Additional functions to treat as pure. Extend the built-in list of known pure functions.

extra_impure_filters frozenset[str]

Additional filters to treat as impure. Extend the built-in list of known impure filters.