Skip to content

Instantly share code, notes, and snippets.

@lazyatom
Forked from anonymous/gist:89703
Created April 3, 2009 10:55
Show Gist options
  • Save lazyatom/89705 to your computer and use it in GitHub Desktop.
Save lazyatom/89705 to your computer and use it in GitHub Desktop.
<h2>My recent links about boobs</h2>
<ul>
{% recent limit 10, tag 'boobs' do |link| %}
<li><a href="{{ link.href }}">{{ link.text }}</a></li>
{% endrecent %}
</ul>
plugin 'Delicious' do |p|
p.description 'Gets links from delicious'
p.config :username, :string
p.config :password, :string
p.base_uri 'http://del.icio.us/api'
p.tag :recent do |args|
links = p.get 'recent', args
links.each do |link|
yield link
end
end
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment