we-plugin-rss

1.1.2 • Public • Published

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

Dependencies (0)

    Dev Dependencies (0)

      Package Sidebar

      Install

      npm i we-plugin-rss

      Weekly Downloads

      1

      Version

      1.1.2

      License

      MIT

      Unpacked Size

      11.2 kB

      Total Files

      5

      Last publish

      Collaborators

      • albertosouza