Skip to content

Same as segfault's but adds a few more Liquid variables like summary and author_name

Notifications You must be signed in to change notification settings

luigi/mephisto_feedreader

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

16 Commits
 
 
 
 
 
 

Repository files navigation

rss feed display plugin for Mephisto
==================================================

You can display feeds in your templates


Install
==========
   ruby script/install svn://hasno.info/mephisto/plugins/feedreader
   ruby script/runner -e production 'Mephisto::Plugins::Feedreader.install'



Usage
==========

The plugin makes a new liquid template tag 'feedreader':

   <ul>
   {% feedreader url: 'http://digg.com/', max: 15 as link %}
     <li><a href="{{ link.href }}">{{ link.description }}</a> {{ link.extended }}</li>
   {% endfeedreader %}
   </ul>

Other Liquid variables that may be available depending on what a feed item named 'link'
may provide:

link.title (same as description)
link.summary (used if the feed provides a summary or excerpt)
link.author_name
link.author_email 
link.author_href


(C) Mark Guzman 2006-2007, under an MIT license.

About

Same as segfault's but adds a few more Liquid variables like summary and author_name

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Ruby 100.0%