Hello everyone, I wish you all a successful and happy 2025.
- I was following this twig documentation to format a numeric frontmatter field as currency with locale es:
https://twig.symfony.com/doc/3.x/filters/format_currency.html
But the number field disappeared.
- Since I saw the note on versions, I looked for the twig version that Grav uses and I found it in: /public_html/vendor/twig/twig/src/Environment.php
JS
class Environment { public const VERSION = '1.44.8'; public const VERSION_ID = 14408; public const MAJOR_VERSION = 1; public const MINOR_VERSION = 44; public const RELEASE_VERSION = 8; public const EXTRA_VERSION = '';2.2 I was trying to find the way to format it as currency in Twig 1.x but on the documentation page I got a discouraging warning:
Warning Twig version 1.x is no longer maintained.
https://twig.symfony.com/doc/1.x/
3.1 Why Grav uses such an outdated version of Twig? is it safe and reliable?
3.2 How can I easily format the display of a frontmatter numeric field as currency? I looked into Grav documentation, but I was not able to find any "currency format"
3.3 I began to understand the power of using Twig, but how can I upgrade Twig to version 3 without breaking something in Grav?
Thank you and regards
joejac