English
php
templates
twig-alternative
caching
xss
csp
shinobi-apps-framework
PHP template engine without Twig: production caching and @directive preprocessing
Shinobi Apps framework template engine: DirectiveProcessor processes @csrf/@include/@asset before template execution. @csrf returns PHP code (not static HTML) — nonce evaluated at runtime, never baked into cache file. processExpressions {{ $x }} → htmlspecialchars runtime echo, {!! $x !!} → raw (unescaped) — prior bug: inlined value into cache = stored RCE via {!! SVG }}. Cache keyed by source path hash, not request vars. CSP nonce via Request::getCurrent()->getNonce().