Skip to content

Instantly share code, notes, and snippets.

@oalders
Created May 13, 2011 11:20
Show Gist options
  • Save oalders/970366 to your computer and use it in GitHub Desktop.
Save oalders/970366 to your computer and use it in GitHub Desktop.
<html>
<body>
<h2>Recent CPAN Releases</h2>
<script type="text/javascript">
function cpan_distros(data) {
document.write('<dl>');
for (i in data.hits.hits) {
var dist = data.hits.hits[i]._source;
document.write(
'<dt><a href="http://beta.metacpan.org/release/DWHEELER/' + dist.distvname +
'">' + dist.name + '</a></dt>' +
'<dd>' + dist.abstract + '</dd>'
);
}
document.write('</dl>');
}
</script>
<script type="text/javascript"
src="http://api.metacpan.org/dist/_search?q=author:dwheeler&callback=cpan_distros">
</script>
</body>
</html>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment