I'm very excited to announce the launch of Twig Playground, a new tool that allows you to test and experiment with Twig templates in a sandbox environment. It is entirely web-based, with no backend.
Twig templates are rendered via PHP Wasm and the state is preserved in the URL for easy sharing. It can be used to try Twig, quickly test new features, and it is the perfect tool to improve bug reports with reproducible examples.
You might have used https://twigfiddle.com in the past. Alain Tiemblo started it in 2011 and it was a great tool. It was widely used by bug reporters to share examples of wrong behaviors. Unfortunately, it's not available anymore, and the new Twig Playground is its successor. Alain was kind enough to share the old database with me to help the transition. Most of the old http://twigfiddle.com fiddle links work again and redirect to this new playground (which makes me happy as so many issues have such links).
Thank you Fabien for taking over the project. I am boating my new startup and it drastically reduced my bandwidth for side projects. It has been a pleasure to maintain twigfiddle.com for these many years. See you all at an upcoming Symfony event!
Very nice! Would it be an option to somehow use this in my own application, to be able to edit some Twig (email template) which is stored in my database? Obviously, the user should not be allowed to change the configuration or context, in that case.