mirror of
https://github.com/twigphp/Twig.git
synced 2026-08-30 03:57:21 +00:00
fixed docs
This commit is contained in:
+2
-4
@@ -1,7 +1,8 @@
|
||||
``empty``
|
||||
=========
|
||||
|
||||
``empty`` checks if a variable is an empty string, an empty array, an empty hash, exactly ``false``, exactly ``null``:
|
||||
``empty`` checks if a variable is an empty string, an empty array, an empty
|
||||
hash, exactly ``false``, or exactly ``null``:
|
||||
|
||||
.. code-block:: jinja
|
||||
|
||||
@@ -9,6 +10,3 @@
|
||||
{% if foo is empty %}
|
||||
...
|
||||
{% endif %}
|
||||
|
||||
.. _Countable: http://php.net/manual/en/class.countable.php
|
||||
.. _count: http://php.net/manual/en/function.count.php
|
||||
|
||||
Reference in New Issue
Block a user