merged branch gunnarlium/master (PR #908)

This PR was merged into the master branch.

Commits
-------

a666505 Update doc for consistency.

Discussion
----------

docs: Use lipsum in all examples.

Fixes a small inconsistency in the docs for extending twig.
This commit is contained in:
Fabien Potencier
2012-11-19 08:06:25 +01:00
+2 -2
View File
@@ -74,9 +74,9 @@ extension point to use. And you can use it anywhere an expression is accepted:
.. code-block:: jinja
{{ 'some text' ~ ipsum(40) ~ 'some more text' }}
{{ 'some text' ~ lipsum(40) ~ 'some more text' }}
{% set ipsum = ipsum(40) %}
{% set lipsum = lipsum(40) %}
Last but not the least, you can also use a *global* object with a method able
to generate lorem ipsum text: