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 Using a for loop's current index as an argument in a tag
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
 
Tom Preston-Werner  
View profile  
 More options Jun 21 2010, 9:26 pm
From: Tom Preston-Werner <mojo...@gmail.com>
Date: Mon, 21 Jun 2010 18:26:58 -0700 (PDT)
Local: Mon, Jun 21 2010 9:26 pm
Subject: Using a for loop's current index as an argument in a tag
Is it possible to use the currently indexed variable in a for loop as
an argument to a tag? Something like this:

{% for entry in entries %}
  {% include entry %}
{% endfor %}

Where `include` is a custom tag and `entry` is the variable from the
for loop and not the literal string "entry".

Thanks!

Tom

--
Tom Preston-Werner
GitHub Cofounder
http://tom.preston-werner.com
github.com/mojombo


 
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.