Twig
Twig copied to clipboard
Twig, the flexible, fast, and secure template language for PHP
Wording is taken from https://twig.symfony.com/doc/3.x/filters/format_datetime.html
Hi, I add `language_names`, `script_names`, `country_names`, `locale_names`, `currency_names`, `timezone_names`. It allows us to have a list but on the Twig side and to use them in filters for example.
I think it would be interesting to be able to list with Twig functions the languages, countries, locales, currencies, timezones For instance, for languages, we will reuse: ```php $languages =...
Following this tweet: https://twitter.com/ramsey/status/1561894460560138241, this PR adds the configuration options for `commonmark` to the `twig-extra-bundle`. The configuration is added to the `LeagueCommonMarkConverterFactory` and in turn injected in the `CommonMarkConverter`. This...
When I create the compiler by own (test case) and call as first `addDebugInfo` it throws a php deprecation ```php $compiler = new Compiler(new Environment(new ArrayLoader())); $compiler ->addDebugInfo($myNode); ``` PHP...
It is so natural to comment out HTML attributes that it's easy to think that Twig supports this. So easy that even the Symfony UX documentation has an example. ```twig...
We've started working on the next major Twig release. As announced last year, this new version will probably land under the Symfony mono-repository. For the first time in Twig history,...
Twig version: v3.5.1 PHP version: 7.4 I'm copying this from an answer I just left on stackOverflow: I was getting: `Unable to load the "MyCustomFunctions" runtime in "main" at line...