I’d like to be able to display information from an atom feed embedded on a html webpage. I thought this might be possible with the HTML5 <embed> tag, something like:
<object data="https://github.com/cboettig.atom" width="200" height="200">
<embed src="https://github.com/cboettig.atom" width="200" height="200"> </embed>
Loading...
</object>
but no luck. Any suggestions? Can this be done without some additional javascript?
Your code would work and it would embed the raw data, if the feed had an .xml extension.
I’m not sure if you want to embed raw feed data, or parsed and formatted feed data. Feed parsing must be done either client-side or server-side. If you don’t want to use javascript, you can parse the feeds server-side. If my guess is right and you want to display the feed on your Jekyll powered website, there is a great feed parsing gem for Rails, called feedzirra.