Version: dev

max_template_expansion_depth

Stable constant · Load-time lowering and templates

Tier: stable · Kind: constant · Topic: Load-time lowering and templates

JuliaTypeScriptPythonRustGo
not exportedMAX_TEMPLATE_EXPANSION_DEPTHMAX_TEMPLATE_EXPANSION_DEPTHnot exportedMaxTemplateExpansionDepth

Julia

Julia does not export this constant.

TypeScript

const MAX_TEMPLATE_EXPANSION_DEPTH: 32

Maximum template-body reference-chain depth (counted in TEMPLATES along the longest chain, so a 33-template chain is rejected while a 32-template chain is accepted) before a file is rejected with template_body_expansion_too_deep (esm-spec §9.7.3). Pinned identically across all bindings.

Source

Python

MAX_TEMPLATE_EXPANSION_DEPTH = 32

Maximum template-body reference-chain depth (counted in TEMPLATES along the longest chain, so a 33-template chain is rejected and a 32-template chain is accepted) before a file is rejected with template_body_expansion_too_deep (esm-spec §9.7.3). Pinned identically across all bindings.

Source

Rust

Rust does not export this constant.

Go

const MaxTemplateExpansionDepth = 32

MaxTemplateExpansionDepth is the maximum template-body reference-chain depth (counted in TEMPLATES along the longest chain, so a 33-template chain is rejected and a 32-template chain is accepted) before a file is rejected with template_body_expansion_too_deep (esm-spec §9.7.3). Pinned identically across all bindings.

Source · Go docs