-
-
Save lazyatom/89705 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<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> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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