feat(filters): Add a join filter

This commit is contained in:
Kyle Fuller
2016-11-27 19:47:50 +00:00
parent dfd57e9571
commit 9fdbbc99e9
5 changed files with 43 additions and 0 deletions

View File

@@ -130,3 +130,14 @@ value of the variable. For example:
.. code-block:: html+django
Hello {{ name|default:"World" }}
``join``
~~~~~~~~
Join an array with a string.
.. code-block:: html+django
{{ value|join:", " }}
.. note:: The value MUST be an array of Strngs and the separator must be a string.