Hi,
when i tried to use {%break%} with pyramid-jinja2, i get below error

{% if loop.index >= 10 %}{%break%}{% endif %}
TemplateSyntaxError: Encountered unknown tag 'break'. Jinja was
looking for the following tags: 'elif' or 'else' or 'endif'. The
innermost block that needs to be closed is 'if'.

i think it is because the loopcontrols extension not enabled.

but when i add below to the setup code.

config.add_jinja2_extension(loopcontrols)

i get another error when try to open any page:

TemplateAssertionError: no filter named 'urlencode'

what did i miss, how can i enable loopcontrols with pyramid-jinja2?

thanks
Evan

-- 
You received this message because you are subscribed to the Google Groups 
"pylons-devel" group.
To post to this group, send email to pylons-devel@googlegroups.com.
To unsubscribe from this group, send email to 
pylons-devel+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/pylons-devel?hl=en.

Reply via email to