# Advanced URL: /docs/advanced/ Section: advanced Tags: advanced -------------------------------------------------------------------------------- Advanced Features for framework authors, SSG/SSR builders, and power users who need to go beyond standard template rendering. Magnifying Glass Static Analysis Analyze templates for dependencies, purity, and caching potential Extract dependency paths, validate contexts, and plan caching strategies. Shield T-Strings (PEP 750) Auto-escaping HTML and composable regex via Python 3.14 t-strings Use the k() and r() tag functions for safe interpolation. Cpu Compiler Internals F-string coalescing, AST preservation, and render modes Understand and tune the compilation pipeline. Worker Auto-Tuning Workload-aware parallelization for free-threaded Python Optimal worker counts, template scheduling, and environment detection. Shield Security Hardening Context-specific escaping, URL validation, and attribute safety Protect against XSS in JavaScript, CSS, and URL contexts. Profiling Opt-in render instrumentation with zero overhead when disabled Track block timings, macro calls, includes, and filter usage. Database Block Caching Connect analysis results to runtime block caching Cache site-scoped blocks for 40-60% faster builds. -------------------------------------------------------------------------------- Metadata: - Word Count: 147 - Reading Time: 1 minutes