Account Options

  1. Sign in
The old Google Groups will be going away soon, but your browser is incompatible with the new version.
Google Groups Home
« Groups Home
Message from discussion Jinja2: default text when iterating over list
The group you are posting to is a Usenet group. Messages posted to this group will make your email address visible to anyone on the Internet.
Your reply message has not been sent.
Your post was successful
 
From:
To:
Cc:
Followup To:
Add Cc | Add Followup-to | Edit Subject
Subject:
Validation:
For verification purposes please type the characters you see in the picture below or the numbers you hear by clicking the accessibility icon. Listen and type the numbers you hear
 
Marten Lehmann  
View profile  
 More options Oct 1 2012, 12:29 pm
From: Marten Lehmann <lehm...@cnm.de>
Date: Mon, 1 Oct 2012 09:29:13 -0700 (PDT)
Local: Mon, Oct 1 2012 12:29 pm
Subject: Re: Jinja2: default text when iterating over list

On Monday, October 1, 2012 5:44:35 AM UTC+2, Steven Kryskalla wrote:

> It is mentioned in the docs here:

> http://jinja.pocoo.org/docs/templates/#for

> "If no iteration took place because the sequence was empty or the
> filtering removed all the items from the sequence you can render a
> replacement block by using else"

Thanks, you're right. I obviously wasn't reading the explicit
for-documentation, but I was just looking at arbitrary examples of the for
loop everywhere else, which don't contain the else part.

 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.