After a JSONP call I am returned:
[
{
"text": "yo whats up?",
"id": 1
},
{
"text": "hey man!",
"id": 2
},
{
"text": "dude.",
"id": 3
}
]
Heres the actual API call:
http://api.twitter.com/1/statuses/user_timeline/codinghorror.json
Using Dust.js I would do something like:
<ul>
{#myPosts}
<li>{text}, {id}{~n}</li>
{:else}
<p>Humm...</p>
{/myPosts}
</ul>
But there is no key "myPosts" in the response. That's the problem. Checkout the API call too see how the JSON is being returned, mabye I'm interpreting this wrong.
What syntax would I use in Dust.js to iterate through each object in this array?