Commits

Greg Slepak  committed fbb4696

fixed up some of the stuff with feeds

  • Participants
  • Parent commits dcf8406

Comments (0)

Files changed (3)

File example-site/dragonfly-framework/plugins-active/dragonfly_basic.lsp

 ;; <p>Reads an atom feed from a given URL and displays it. There are three span classes to style Your feed:
 ;; atomFeedTitle, atomFeedUpdated and atomFeedAuthor.</p>
 
-(define (read-atom-feed feed-url, max-items raw-xml)
+(define (read-atom-feed feed-url max-items raw-xml)
 
 	; get feed-url
 	(set 'xml (get-url (string feed-url) ))
 ;; <p>Reads an RSS feed from a given URL and displays it. There are three span classes to style Your feed:
 ;; rssFeedTitle, rssFeedUpdated and rssFeedAuthor.</p>
 
-(define (read-rss-feed feed-url, max-items raw-xml)
+(define (read-rss-feed feed-url max-items raw-xml)
 
 	; get feed-url
 	(set 'xml (get-url (string feed-url) ))

File example-site/dragonfly-framework/plugins-inactive/dragonfly_sqlite3.lsp

 ;; Its's features are a short learning curve, lightweight and fun in programming - 
 ;; just like newLISP itself.</p>
 
+(module "sqlite3.lsp")
+
 ;===============================================================================
 ; !Defining new context
 ;===============================================================================

File example-site/views/dragonfly_feeds.html

 		
 		<h2>How to load an atom feed</h2>
 		<p>Example: open your view and enter the following:</p>
-		<pre class="code">&lt;% (read-atom-feed "http://www.example-site.com/atomfeed.xml") &gt;%</pre>
-		<p class="info"><b>INFORMATION</b><br/>If you want to see the raw XML, then just put "<b>, true</b>" after the feed-URL. See the example below.</p>
-		<pre class="code">&lt;% (read-atom-feed "http://www.example-site.com/atomfeed.xml", true) &gt;%</pre>
+		<pre class="code">&lt;% (read-atom-feed "http://example-site.com/atomfeed.xml") %&gt;</pre>
+		<p>If you want to see the raw XML, then pass in <b>true</b> as the second parameter:</p>
+		<pre class="code">&lt;% (read-atom-feed "http://example-site.com/atomfeed.xml" true) %&gt;</pre>
 		<br/>		
 
 		<h2>How to load an RSS feed</h2>
 		<p>Example: open your view and enter the following:</p>
-		<pre class="code">&lt;% (read-rss-feed "http://www.example-site.com/rssfeed.xml") &gt;%</pre>
-		<p class="info"><b>INFORMATION</b><br/>If you want to see the raw XML, then just put "<b>, true</b>" after the feed-URL. See the example below.</p>
-		<pre class="code">&lt;% (read-rss-feed "http://www.example-site.com/rssfeed.xml", true) &gt;%</pre>
+		<pre class="code">&lt;% (read-rss-feed "http://example-site.com/rssfeed.xml") %&gt;</pre>
+		<p>If you want to see the raw XML, pass in <b>true</b> as the second parameter:</p>
+		<pre class="code">&lt;% (read-rss-feed "http://example-site.com/rssfeed.xml" true) %&gt;</pre>
 		<br/>		
 
 		<h2>NYTimes.com (RSS)</h2>
 		<p>
-		<% (read-rss-feed "http://www.nytimes.com/services/xml/rss/nyt/GlobalHome.xml", 5) %>
+		<% (read-rss-feed "http://www.nytimes.com/services/xml/rss/nyt/GlobalHome.xml" 3) %>
 		</p>
 
 		<h2>newLISP news (RSS)</h2>
 		<p>
-		<% (read-rss-feed "http://www.newlisp.org/rss.cgi", 3) %>
+		<% (read-rss-feed "http://www.newlisp.org/rss.cgi" 3) %>
 		</p>
 		
 		<div class="line-dotted"></div>