Mike Valstar

Web Development, Programming, Random Thoughts

Twitter Status...

Jade template for RSS 2.0

Posted on

When coding an RSS feed for this site I saw that there really was no simple RSS templates written in jade. (Specifically since this site uses the Express framework, jade is already built in. ) I decided to create a jade template that will cover just about anyones needs for an RSS feed.

rss2.0.template.jade

GetRFC822Date

You will need to pass in the GetRFC822Date function as "dateFormat" to the template in order for it to render the dates in the proper format:

Usage example:

Limitations

Right now the only limitations to the template as per the RSS Specs are the cloud tag and categories do not support domains.

bp_109
comments powered by Disqus
Mike Valstar © 2012