Permalink
Browse files

Added rss example

  • Loading branch information...
1 parent 29fc5ff commit 96c8ba83f8cb01b6ef37167ee380afde58e629d1 @tj tj committed Mar 4, 2011
Showing with 24 additions and 0 deletions.
  1. +13 −0 examples/rss.jade
  2. +11 −0 examples/rss.js
View
@@ -0,0 +1,13 @@
+!!! xml
+rss(version='2.0')
+channel
+ title RSS Title
+ description Some description here
+ link http://google.com
+ lastBuildDate Mon, 06 Sep 2010 00:01:00 +0000
+ pubDate Mon, 06 Sep 2009 16:45:00 +0000
+
+ item
+ title Example entry
+ description Description here
+ link http://google.com/foobar
View
@@ -0,0 +1,11 @@
+
+/**
+ * Module dependencies.
+ */
+
+var jade = require('./../lib/jade');
+
+jade.renderFile(__dirname + '/rss.jade', function(err, xml){
+ if (err) throw err;
+ console.log(xml);
+});

0 comments on commit 96c8ba8

Please sign in to comment.