Skip to content

recent_rss.rb

TADA Tadashi edited this page Nov 10, 2017 · 2 revisions

概要

指定したRSSを読み込んでその内容をリスト表示します。

使い方

サイドバーなどに以下のように記述します。

<%=recent_rss 'url', max, cache_time %>
  • url: RSSファイルのURLを文字列で指定します
  • max: 表示する最大アイテム数。省略時は5
  • cache_time: RSSファイルをキャッシュする時間(秒)。省略時は3600秒

備考

[セキュア不可]

その他

参考: http://tdiary-users.sourceforge.jp/cgi-bin/wiki.cgi?rss_recent.rb

Clone this wiki locally