%
header=File.open("template/header.tmpl")
footer=File.open("template/footer.tmpl")
%><%= header.read %>
<%= yield %>
<%
require 'rss'
url = 'news/news.rdf'
rss = RSS::Parser.parse(url, false)
count = 0
max_count = 5
rss.items.each do |i|
%>
<%= "\t" %>
<%= "\t #{i.title} | " %>
<%= "\t #{i.date.strftime("%Y/%m/%d")} |
" %>
<%
count += 1
if count == max_count
break
end
end
%>
もっと読む... |
<%
require 'rss'
url = 'vlmagazine/vlmagazine.rdf'
rss = RSS::Parser.parse(url, false)
count = 0
max_count = 5
rss.items.each do |i|
%>
<%= "\t" %>
<%= "\t #{i.title} | " %>
<%= "\t #{i.date.strftime("%Y/%m/%d")} |
" %>
<%
count += 1
if count == max_count
break
end
end
%>
もっと読む... |
イベント・勉強会等
![](/images/rss.png)
<%
require 'rss'
url = 'events/events.rdf'
rss = RSS::Parser.parse(url, false)
count = 0
max_count = 5
rss.items.each do |i|
%>
<%= "\t" %>
<%= "\t #{i.title} | " %>
<%= "\t #{i.date.strftime("%Y/%m/%d")} |
" %>
<%
count += 1
if count == max_count
break
end
end
%>
もっと読む... |
<%= footer.read %>