goetas/twital-bundle
A Symfony bundle that integrates Twital, an HTML-syntax extension for Twig. It lets you write templates using familiar HTML-like tags and attributes while keeping Twig’s features, and wires Twital into Symfony configuration and templating.
tal:repeat / tal:condition attributes render harmlessly in a browser and in visual editors. Designers can open, preview, and edit templates without a running app. That supports any roadmap item about reducing design/dev round-trips, agency/client-editable markup, or WYSIWYG handoff.goetas/twital is separable, and output is compiled Twig, so extraction remains feasible.Consider it when all of the following hold:
Look elsewhere when:
goetas/twital directly, which is a real engineering line item, not a drop-in.To executives: This is a free, MIT-licensed Symfony add-on that lets designers work in real HTML tools while engineers keep Twig, potentially cutting design-to-dev rework on content-heavy pages. License cost is zero; adoption cost is not. The new 1.6.0 release is a compatibility patch only — it extends support to Symfony 3/4/5 and adds nothing else. That is the important read: the newest framework it supports is already end-of-life, it has a tiny community and a single maintainer, and it is Symfony-only. Recommendation: do not adopt. Our stack is Laravel/Blade, so it would require custom glue with no product upside. Log it as a known option only if a legacy Symfony or TAL-migration project lands on the roadmap.
To engineering: 1.6.0 is low-risk for anyone already using it — a version-range bump, no API or behavior changes. For everyone else it clarifies the ceiling: Symfony 3/4/5, nothing newer. Twital compiles TAL attributes to Twig at compile time, so runtime performance is effectively Twig's; the cost is a compile step and indirect stack traces. The bundle is thin Symfony wiring around goetas/twital, so if we ever need this capability we would integrate the library directly and manage framework compatibility ourselves. Given Blade incompatibility and the Symfony 5 ceiling, the pragmatic move is a timeboxed spike only if a Symfony 3/4/5 project with a design-heavy template workflow appears — otherwise decline and revisit at the next framework decision.
How can I help you explore Laravel packages today?