This page last changed on Oct 18, 2011 by jed.wheeler@involver.com.
Overview
Map allows you to pass in a method name to apply an array of context variables.
Attributes
name |
type |
required |
description |
n/a |
string |
true |
The first attribute to pass into this filter is the name of the method that you want to call on the context variable |
Examples
Map the like_count on tweet_items
{% twitter_feed %}
{{twitter_feed.tweet_items | map: "title" }}
{% endtwitter_feed %}
If there are 3 tweets, and they are are titled "A", "B" and "C", the above will output:
Related Topics
|