[%- wrap = false -%] [%- USE date -%] <id>http://www.seamonkey-project.org/news-atom</id> <author><name>The SeaMonkey Project</name></author> [%- USE newsxml = file('src/news.en.xml') %] <updated>[% date.format(newsxml.mtime, '%Y-%m-%dT%TZ', gmt => 1) %]</updated> [% USE newsfeed = XML::Simple( 'news.en.xml' ForceArray = ['entry'] KeyAttr = [''] ) %] [% INCLUDE nfeed; BLOCK nfeed; FOREACH nentry IN newsfeed.entry; "<entry>\n"; "<id>http://www.seamonkey-project.org/news#$nentry.id</id>\n"; "\n"; IF nentry.updated; "<updated>$nentry.updated</updated>\n"; ELSE; "<updated>${nentry.id}T12:00:00Z</updated>\n"; END; "$nentry.headline\n"; "\n"; "</entry>\n"; END; END; %]