public
Fork of segfault/mephisto_feedreader
Description: my mephisto feed reader plugin, allows for the display of rss feeds in your layout
Homepage: http://hasno.info
Clone URL: git://github.com/tsykoduk/mephisto_feedreader.git
tsykoduk (author)
Sun Dec 07 20:42:10 -0800 2008
commit  6519056cab6b227afc5543cc412bea757531a954
tree    e9fbb7c6f8644a2ebeec06971f673c76b0f507a4
parent  af20c86afb6762be136b1467a883855d5002e55d
100644 35 lines (23 sloc) 0.871 kb
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
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 development 'Mephisto::Plugins::Feedreader::Schema.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.