|
Revision 28454, 0.9 kB
(checked in by drry, 4 years ago)
|
- (MiniERB)「<%-」と「-%>」に対応しました。
- ほか。
|
| Line | |
|---|
| 1 | Content-Type: text/xml; charset=utf-8 |
|---|
| 2 | |
|---|
| 3 | <?xml version="1.0" encoding="utf-8"?> |
|---|
| 4 | <feed xmlns="http://www.w3.org/2005/Atom"> |
|---|
| 5 | <%- require "time" -%> |
|---|
| 6 | <title><%= stash.title %></title> |
|---|
| 7 | <link href="http://<%= stash.server_root + stash.home %>/"/> |
|---|
| 8 | <link href="http://<%= stash.server_root + stash.home + stash.cgi.path_info %>"/> |
|---|
| 9 | <updated><%= stash.entries.sort_by {|i| i.time }.last.time.xmlschema %></updated> |
|---|
| 10 | <author> |
|---|
| 11 | <name>John Doe</name> |
|---|
| 12 | </author> |
|---|
| 13 | <id>http://<%= stash.server_root + stash.home %>/</id> |
|---|
| 14 | |
|---|
| 15 | <%- stash.entries.each do |entry| -%> |
|---|
| 16 | <entry> |
|---|
| 17 | <title><%= entry.title %></title> |
|---|
| 18 | <link href="http://<%= stash.server_root + stash.home + entry.name %>"/> |
|---|
| 19 | <id>http://<%= stash.server_root + stash.home + entry.name %></id> |
|---|
| 20 | <updated><%= entry.time.xmlschema %></updated> |
|---|
| 21 | <content type="xhtml" xml:base="<%= stash.server_root %>"> |
|---|
| 22 | <div xmlns="http://www.w3.org/1999/xhtml"> |
|---|
| 23 | <%=R entry.body %> |
|---|
| 24 | </div> |
|---|
| 25 | </content> |
|---|
| 26 | </entry> |
|---|
| 27 | <%- end -%> |
|---|
| 28 | </feed> |
|---|
| 29 | |
|---|