Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP

Simple Atom and RSS 2.0 Templates, in Mustache

branch: master

Fetching latest commit…

Octocat-spinner-32-eaf2f5

Cannot retrieve the latest commit at this time

Octocat-spinner-32 docs
Octocat-spinner-32 Atom.mustache
Octocat-spinner-32 LICENSE.md
Octocat-spinner-32 README.md
Octocat-spinner-32 RSS.mustache
README.md

Mustache-RSS-Template

Mustache templates for RSS 2.0 and Atom feeds.

View the project on Github

View the documentation

Expected Input

Here's what the template expects:

{
  Feed: { 
    Title: "Derp News",
    Subtitle: "All the news you need to Herp",
    Link: "http://blog.derpinc.com",
    Language: "en",
    CopyrightInfo: "Copyright 2011 Derp Inc.",
    PubDate: "Thu, 20 Oct 2011 20:38:06 PST",
    LastBuildDate: "Thu, 20 Oct 2011 20:38:03 PST",

    Items: [
      {
        Title: "2nd Post",
        Content: "This is my blog content, or maybe just a snippet. Whatevs",
        Summary: "This is my second post.",
        Link: "http://blog.derpinc.com/2nd-post",
        PubDate: "Thu, 20 Oct 2011 20:35:15 PST"
      },
      {
        Title: "1st Post",
        Content: "This is my blog content, or maybe just a snippet. Whatevs",
        Summary: "This is my first post.",
        Link: "http://blog.derpinc.com/1st-post",
        PubDate: "Tue, 18 Oct 2011 19:38:03 PST"
      }
    ]
  }
}

Subtitle is optional. If an atom feed, date should be RFC-3339. If an rss 2.0 feed, date should be RFC-882. Feed tested as valid with the W3C Feed Validation Service.

License

Copyright (c) 2013 Jack Lawson. MIT Licensed. See LICENSE.md file for details.

Something went wrong with that request. Please try again.