Context
Context. Stock Twig grows by registering extensions in PHP. A Core dna theme is templates and front-end source only, and the platform's Twig environment takes no extensions from a site, so there is no way to add a filter. What exists instead: the core filters and functions, the string extension (|u for Unicode-safe casing and truncation, |slug), the platform's own additions (debug_vars, the coercion filters, json_decode), the underscore helpers as globals, and macros, which are the way to name a reusable transformation.