ember-blog-rss-feed-timeline
v1.0.1
Published
An ember add-on that adds a component to place an embedded timeline of a blog's RSS feed.
Downloads
5
Maintainers
Readme
ember-blog-rss-feed-timeline
An ember add-on that adds a component to place an embedded timeline of a blog's RSS feed.
Inspired by the embedded timeline offered to the WordPress.com community: https://developer.wordpress.com/2014/01/30/embed-wordpress-com-or-jetpack-blogs-on-other-websites-with-timelines/
Installation
- npm i --save ember-blog-rss-feed-timeline
Example / Integration
Simply embed the component within a template in your ember application. At a minimum, you must pass a JSON object to the items property on the component. You may use the fast-xml-parser or any XML parser to convert the XML to JSON.
{{blog-timeline
title='My Example Blog'
subtitle='An example of how to use the Ember Blog RSS Feed Timeline'
moreText='Continue reading...'
length=400
limit=5
items=model.blogFeed.rss.channel.item
}}
Recommended
- fast-xml-parser (https://github.com/NaturalIntelligence/fast-xml-parser)
- ember-browserify (https://github.com/ef4/ember-browserify)
Running
ember serve
- Visit your app at http://localhost:4200.
Building
ember build