Skip to content

Commit

Permalink
Merge branch 'master' of http://github.com/fabpot/Twig-extensions
Browse files Browse the repository at this point in the history
  • Loading branch information
arjenjb committed May 17, 2012
2 parents 9b92712 + 446d870 commit f77be77
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 10 deletions.
7 changes: 7 additions & 0 deletions doc/debug.rst
@@ -1,6 +1,11 @@
The Debug Extension
===================

.. caution::

This extension is deprecated as of Twig 1.5. Use the Twig built-in `dump`_
function instead.

The ``debug`` extension provides a ``debug`` tag that can be used to
output the content of the current context:

Expand All @@ -21,3 +26,5 @@ output a specific variable or an expression:

The ``debug`` tag only works when the ``debug`` environment option is set
to ``true``.

.. _`dump`: http://twig.sensiolabs.org/dump
2 changes: 2 additions & 0 deletions doc/i18n.rst
Expand Up @@ -54,6 +54,8 @@ In a translatable string, you can embed variables:
Hello {{ name }}!
{% endtrans %}
During the gettext lookup these placeholders are converted. ``{{ name }}`` becomes ``%name%`` so the gettext ``msgid`` for this string would be ``Hello %name%!``.

.. note::

``{% trans "Hello {{ name }}!" %}`` is not a valid statement.
Expand Down
10 changes: 0 additions & 10 deletions lib/Twig/Extensions/Extension/Debug.php
Expand Up @@ -22,16 +22,6 @@ public function getTokenParsers()
);
}

/**
* Returns a list of filters to add to the existing list.
*
* @return array An array of filters
*/
public function getFilters()
{
return array();
}

/**
* Returns the name of the extension.
*
Expand Down

0 comments on commit f77be77

Please sign in to comment.