Skip to content

Instantly share code, notes, and snippets.

@anazawa
Last active December 12, 2015 03:08
Show Gist options
  • Select an option

  • Save anazawa/4704221 to your computer and use it in GitHub Desktop.

Select an option

Save anazawa/4704221 to your computer and use it in GitHub Desktop.
Blosxom flavour: rss
application/rss+xml; charset=utf-8
</channel>
</rss>
?= mt::encoded_string '<?xml version="1.0"?>';
<rss version="2.0"
xmlns:atom="http://www.w3.org/2005/Atom"
xmlns:content="http://purl.org/rss/1.0/modules/content/">
<channel>
<atom:link href="<?= "$url$path/index.rss" ?>" rel="self" type="application/rss+xml" />
<title><?= "$blog_title $path_info_da $path_info_mo $path_info_yr" ?></title>
<link><?= $url ?></link>
<language><?= $blog_language ?></language>
<description><?= $blog_description ?></description>
<generator>blosxom/<?= $version ?></generator>
? my $body = ( split("\n", $raw, 2) )[1];
<item>
<title><?= $title ?></title>
<link><?= "$url/$yr/$mo_num/$da#$fn" ?></link>
<content:encoded>
<![CDATA[<?= mt::encoded_string($body) ?>]]>
</content:encoded>
</item>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment