Skip to content
Myr

Fixed a link to the renamed section.

Before adoption: this commit came in with the history the project adopted, so no landing records it.

--HG-- branch : trunk

authored by Armin Ronacher · committed by Armin Ronacher · parent b938877 · Browse files · 2 files+2 added−2 removed
This commit

State

Before adoption: this commit came in with the history the project adopted, so no landing records it.

Diff stats

2 files+2 added−2 removed

  • other:+2 added−2 removed

2 files+2 added−2 removed

modified:jinja2/filters.py+1 added-1 removed
625 unmodified lines
626 """Get an attribute of an object. ``foo|attr("bar")`` works like627 ``foo["bar"]`` just that always an attribute is returned and items are not628 looked up.629630 See :ref:`Notes on subscribing <notes-on-subscribing>` for more details.630 See :ref:`Notes on subscriptions <notes-on-subscriptions>` for more details.631 """632 try:633 value = getattr(obj, name)634 except AttributeError:
54 unmodified lines
modified:CHANGES+1 added-1 removed
9 unmodified lines
10 by either using dot-notation lookup or the bracket syntax. This also11 changed the AST slightly. `Subscript` is gone and was replaced with12 :class:`~jinja2.nodes.Getitem` and :class:`~jinja2.nodes.Getattr`.1314 For more information see :ref:`the implementation details <notes-on-subscribing>`.14 For more information see :ref:`the implementation details <notes-on-subscriptions>`.1516- added support for preprocessing and token stream filtering for extensions.17 This would allow extensions to allow simplified gettext calls in template18 data and something similar.
11 unmodified lines