jQuery.atomfeed
A lightweight atom feed parser based on jQuery.
Features
jQuery.atomfeed provides the following:
- Read atom feeds and display easily.
- Support template, that you can customize a more readable format.
Getting Started
Here is a demo.
Options
- url (required)
- Specify the url for the feed.
- max (optional)
- Specify the maximum number of feed items to display. The default value is 10.
- template (optional)
-
- Specify the template. The default value is following:
'<dt>{updated}</dt><dd><a href="{link.href}">{title}</a></dd>'
Template syntax
- {TagName} will substitute the combined text contents of the element.
- {TagName.AttributeName} will subsitute the attribute value for the element.
Basic usage
The following example shows how to use atomfeed()
.