Permalink
Browse files

tweaked merge filter

  • Loading branch information...
1 parent 78b104b commit 9a793744c678c1face970fcb9499affb24c2cc0d @fabpot committed Dec 16, 2010
Showing with 2 additions and 0 deletions.
  1. +2 −0 doc/templates.rst
View
@@ -1325,6 +1325,8 @@ The ``merge`` filter merges an array or a hash with the value:
{% set items = items|merge({ 'peugeot': 'car' }) %}
+ {# items now contains { 'apple': 'fruit', 'orange': 'fruit', 'peugeot': 'car' } #}
+
List of built-in Tests (new in Twig 0.9.9)
------------------------------------------

0 comments on commit 9a79374

Please sign in to comment.