Skip to content

Instantly share code, notes, and snippets.

@mikeumus
Last active December 15, 2015 00:09
Show Gist options
  • Save mikeumus/5170882 to your computer and use it in GitHub Desktop.
Save mikeumus/5170882 to your computer and use it in GitHub Desktop.
docpad-feedr error.
default.html.eco:
<% if tweet in @feedr.feeds.twitter: %>
<li datetime="<%=tweet.created_at%>">
<a href="https://twitter.com/#!/<%=tweet.user.screen_name%>/status/<%=tweet.id_str%>" title="View on Twitter">
<%=tweet.text%>
</a>
</li>
<% end %>
-^-^-^-^-^-^_^_^_
docpad.coffee:
plugins:
feedr:
feeds:
twitter:
url: "https://api.twitter.com/1/statuses/user_timeline.json?screen_name=kariadamskc&count=1&include_entities=true&include_rts=true"
-^-^-^-^-^-^_^_^_
Outputs a error too long to see it's begining in Git bash. Not sure why the long error?
@mikeumus
Copy link
Author

Solution

The exact example from the docpad-plugin-feedr works and then you use the &count=1 in the docpad.coffee twitter.url to set the number of tweets pulled.

-v-v-v-v-v-v_V_V_V

`


    <% for tweet in @feedr.feeds.twitter: %>
    <% continue if tweet.in_reply_to_user_id %>


  • <%=tweet.text%>


  • <% end %>

`

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment