RSS plugin to add suport for RSS response type in lists (find action)
Switch branches/tags
Nothing to show
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
files/public
server/helpers
.gitignore
.jscsrc
.jshintignore
.jshintrc
.npmignore
README.md
package.json
plugin.js

README.md

We.js RSS plugin

RSS plugin to add suport to format response in RSS compatible format, avaible for lists

Configuration

Add the rss configuration for every model in you project config/local.js file

File: config/local.js

module.exports = {
  // - others configs
  rss: {
    models: {
      article: { // model name
        title: 'My posts!', // title of your xml file
        description: 'my newest blog posts', // description for your xml file
        item: {
          title: 'title', // model attribute to get title
          description: 'teaser'  // model attribute to get description
        }
      }
    }
  }
  // - others configs
}

Usage

After configure access your list with responseType=rss query param or .rss extension like:

http://localhost:4000/event.rss

Links

License

MIT