Duplicated Functionality of Twig
Closed this issue · 1 comments
lukeholder commented
This plugin simplifies native functionality already in twig. I suggest you add information in your readme to explain how this can also be done in twig natively, although more verbose...
http://twig.sensiolabs.org/doc/filters/slice.html
http://twig.sensiolabs.org/doc/filters/join.html
http://twig.sensiolabs.org/doc/filters/split.html
{% set words = "these are words"|split(" ")|slice(1, 2)|join(" ") %}
{{ words }}
nizur commented
Thanks for bringing this up. I'll add info to the read me.