mirror of
https://github.com/twigphp/Twig.git
synced 2026-09-18 05:16:30 +00:00
b5f4abf412d820d0acaf298968cec67128fd0998
This PR was submitted for the 2.x branch but it was squashed and merged into the 1.x branch instead (closes #2757).
Discussion
----------
Enhances join filter for natural language join (i.e., "A, B and C")
Simply adds a second optional parameter to the join filter that will be placed between the last two entries when generating the string. Since the filter only took one argument previously, this should be 100% backward compatible. Allows simple "first, second and third" string from an array. Compatible with any length input array.
Commits
-------
bf529d0a Enhances join filter for natural language join (i.e., \"A, B and C\")
Twig, the flexible, fast, and secure template language for PHP ============================================================== Twig is a template language for PHP, released under the new BSD license (code and documentation). Twig uses a syntax similar to the Django and Jinja template languages which inspired the Twig runtime environment. More Information ---------------- Read the `documentation`_ for more information. .. _documentation: https://twig.symfony.com/documentation
Description
Languages
PHP
99.9%