Le 16/03/2012 08:47, AKP a écrit :
     ... foo foo {% footnote %}This is a footnote{% endfootnote %} foo
foo ...
     ... bar bar {% footnote %}This is another footnote{% endfootnote
%} bar bar ...
     ...
     ...
     {% all_footnotes %}

Hi,

A "low-tech" solution (unested):

{% set notes = [] %}
foo foo {{ notes.append('footnote text') or '[%d]' % len(notes) }}

...
{% for i, text in enumerate(notes, 1) %}
{{ '[%d] %s' % (i, text) }}
{% endfor %}

If this works, it can be wrapped in an object with nice methods and all that.

Regards,
--
Simon Sapin

--
You received this message because you are subscribed to the Google Groups 
"pocoo-libs" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/pocoo-libs?hl=en.

Reply via email to