Browse the Ruby on Rails Community.

You are here: Browse Railsplugins Mephisto Delicious

Mephisto Delicious

Del.icio.us Recent Links Plugin For Mephisto

This plugin allows you to include recent links stored in your del.icio.us account in your templates.

Usage

Install normally:

ruby script/install http://svn.danwebb.net/external/rails/plugins/mephisto_delicious/trunk

This gives you a new liquid template tag ‘delrecentlinks’ use it like this:

{% delrecentlinks user: 'xxx', password: 'xxx', tag: 'mephisto' as link %}
  {{ link.description }} {{ link.extended }}
{% enddelrecentlinks %}

If you dan’t want to include the username and password in all your tags you can set your details globally by inserting this into environment.rb:

MephistoDelicious.authenticate :username => 'xxx', :password => 'xxx'

The tag option is optional as is count which you can use to limit the number of entries returned. To avoid hitting the del.icio.us site too much caching is enabled and is automatically flushed every 24 hours but you can adjust this with the expires_cache_every property of Delicious:

Delicious.expires_cache_every = 3.hours

(C) Dan Webb 2006, under an MIT licence. http://www.opensource.org/licenses/mit-license.php

Please leave any bugs or feedback at http://projects.danwebb.net

NOTE: This description has been extracted from the Plugin README and so the formatting may need updating to make browser friendly

Users


See all 3 member details


Membership

+ Join this railsplugin

Record Maintainer

'None'