<?xml version="1.0" encoding="UTF-8"?>
<commit>
  <added type="array">
    <added>
      <filename>images/favicon.ico</filename>
    </added>
    <added>
      <filename>textile.py</filename>
    </added>
  </added>
  <modified type="array">
    <modified>
      <diff>@@ -1,5 +1,5 @@
 application: onelinr
-version: 1
+version: 2
 runtime: python
 api_version: 1
 </diff>
      <filename>app.yaml</filename>
    </modified>
    <modified>
      <diff>@@ -1,6 +1,7 @@
+{% load markup %}
 {% include &quot;header.html&quot; %}
 &lt;div id=&quot;header&quot;&gt;
-  &lt;a id=&quot;text-logo&quot; href=&quot;/&quot;&gt;Onelinr&lt;/a&gt; | You are viewing the {{channel.name}} oneliner channel.&lt;!--&lt;a href=&quot;http://whytheluckystiff.net/ruby/redcloth/&quot;&gt;Textile&lt;/a&gt; is enabled.--&gt;
+  &lt;a id=&quot;text-logo&quot; href=&quot;/&quot;&gt;Onelinr&lt;/a&gt; | You are viewing the {{channel.name}} oneliner channel. &lt;a href=&quot;http://hobix.com/textile/&quot;&gt;Textile&lt;/a&gt; is enabled.
 &lt;!--  &lt;span id=&quot;customizr&quot;&gt;
     &lt;span id=&quot;text-color&quot;&gt;
       &lt;form&gt;
@@ -31,7 +32,8 @@ This is a test oneliner.
 &lt;ul id=&quot;oneliners&quot;&gt;
   {% for p in posts %}
   &lt;li id=&quot;oneliner-{{p.post_id}}&quot;&gt;
-    {{p.text}}
+    
+    {{p.text|textile}}
     &lt;a href=&quot;http://onelinr.com/{{channel.name}}#oneliner-{{p.post_id}}&quot; title=&quot;Permalink for this oneliner&quot; class=&quot;permalink&quot;&gt;#&lt;/a&gt;
   &lt;/li&gt;
   {% endfor %}</diff>
      <filename>channel.html</filename>
    </modified>
    <modified>
      <diff>@@ -1,21 +1,22 @@
 &lt;?xml version=&quot;1.0&quot; encoding=&quot;UTF-8&quot;?&gt;
-&lt;rss version=&quot;2.0&quot;&gt;
+&lt;rss version=&quot;2.0&quot; xmlns:content=&quot;http://purl.org/rss/1.0/modules/content/&quot;&gt;
+  {% load markup %}
 	&lt;channel&gt;
 &lt;title&gt;onelinr: {{ channel.name }}&lt;/title&gt;
 &lt;link&gt;http://onelinr.com/&lt;/link&gt;
 &lt;description&gt;A onelinr feed of channel {{ channel.name }}&lt;/description&gt;
-&lt;pubDate&gt;{{channel.date_created}}&lt;/pubDate&gt;
-&lt;lastBuildDate&gt;{{channel.date_created}}&lt;/lastBuildDate&gt;
+&lt;pubDate&gt;{{channel.date_created|date:&quot;r&quot;}}&lt;/pubDate&gt;
+&lt;lastBuildDate&gt;{{channel.date_created|date:&quot;r&quot;}}&lt;/lastBuildDate&gt;
 &lt;generator&gt;http://onelinr.com/&lt;/generator&gt;
 
 {% for post in posts %}
 &lt;item&gt;
-&lt;title&gt;{{ post.text }}&lt;/title&gt;
+&lt;title&gt;{{ post.text}}&lt;/title&gt;
 	&lt;link&gt;http://onelinr.com/{{channel.name}}#oneliner_{{ post.post_id }}&lt;/link&gt;
-	&lt;description&gt;
-		{{post.text }}
-&lt;/description&gt;
-&lt;pubDate&gt;{{post.date_posted}}&lt;/pubDate&gt;
+  &lt;description&gt;&lt;![CDATA[{{post.text|textile }}]]&gt;&lt;/description&gt;
+  &lt;content:encoded&gt;&lt;![CDATA[{{post.text|textile }}]]&gt;&lt;/content:encoded&gt;
+
+&lt;pubDate&gt;{{post.date_posted|date:&quot;r&quot;}}&lt;/pubDate&gt;
 &lt;author&gt;nobody@onelinr.com (nobody)&lt;/author&gt;
 &lt;guid isPermaLink=&quot;false&quot;&gt;tag:onelinr.com,2007:/onelinr/{{post.post_id}}&lt;/guid&gt;
 &lt;/item&gt;</diff>
      <filename>channel_feed.html</filename>
    </modified>
    <modified>
      <diff>@@ -1,6 +1,8 @@
 &lt;?xml version=&quot;1.0&quot; encoding=&quot;UTF-8&quot;?&gt;
-&lt;rss version=&quot;2.0&quot;&gt;
+&lt;rss version=&quot;2.0&quot; xmlns:content=&quot;http://purl.org/rss/1.0/modules/content/&quot;&gt;
 	&lt;channel&gt;
+{% load markup %}
+  
 &lt;title&gt;onelinr&lt;/title&gt;
 &lt;link&gt;http://onelinr.com/&lt;/link&gt;
 &lt;description&gt;A feed of all recent onelinrs&lt;/description&gt;
@@ -9,10 +11,11 @@
 {% for post in posts %}
 &lt;item&gt;
 &lt;title&gt;{{ post.text }}&lt;/title&gt;
-	&lt;description&gt;
-		{{post.text }}
-&lt;/description&gt;
-&lt;pubDate&gt;{{post.date_posted}}&lt;/pubDate&gt;
+
+&lt;description&gt;&lt;![CDATA[{{post.text|textile }}]]&gt;&lt;/description&gt;
+&lt;content:encoded&gt;&lt;![CDATA[{{post.text|textile }}]]&gt;&lt;/content:encoded&gt;
+
+&lt;pubDate&gt;{{ post.date_posted|date:&quot;r&quot; }}&lt;/pubDate&gt;
 &lt;author&gt;nobody@onelinr.com (nobody)&lt;/author&gt;
 &lt;/item&gt;
 {% endfor %}</diff>
      <filename>feed.html</filename>
    </modified>
    <modified>
      <diff>@@ -40,7 +40,7 @@ indexes:
   - name: belongs_to
   - name: post_id
 
-# Used 59 times in query history.
+# Used 61 times in query history.
 - kind: Post
   properties:
   - name: date_posted</diff>
      <filename>index.yaml</filename>
    </modified>
    <modified>
      <diff>@@ -8,7 +8,12 @@ from google.appengine.ext import webapp
 from google.appengine.ext.webapp \
   import template
   
+import re  
 from google.appengine.ext.webapp.util import run_wsgi_app
+from django.conf import settings
+import textile
+
+settings.INSTALLED_APPS = ('django.contrib.markup', 'onelinr')
 
 SKIP_LIST = [&quot;favicon.ico&quot;,&quot;robots.txt&quot;]
 
@@ -67,7 +72,7 @@ class ChannelPage(webapp.RequestHandler):
     # force_unicode function from django used here
     post = Post(text=force_unicode(self.request.get('value')), belongs_to=channel, post_id=next_id)
     post = db.get(post.put())
-    self.response.out.write(&quot;{'post_id':&quot;+str(post.post_id)+&quot;,'text':'&quot;+post.text+&quot;'}&quot;)
+    self.response.out.write(&quot;{'post_id':&quot;+str(post.post_id)+&quot;,'text':'&quot;+re.escape(textile.textile(post.text))+&quot;'}&quot;)
 
 class ChannelFeed(webapp.RequestHandler):
   def get(self):
@@ -108,7 +113,7 @@ class LatestPosts(webapp.RequestHandler):
     posts_json = &quot;[&quot;
     idx = 1
     for post in posts:
-      posts_json += &quot;{'post_id':&quot;+str(post.post_id)+&quot;,'text':'&quot;+post.text+&quot;'}&quot;
+      posts_json += &quot;{'post_id':&quot;+str(post.post_id)+&quot;,'text':'&quot;+re.escape(textile.textile(post.text))+&quot;'}&quot;
       if idx != len(posts):
         posts_json += &quot;,&quot;
       idx += 1</diff>
      <filename>onelinr.py</filename>
    </modified>
  </modified>
  <removed type="array">
    <removed>
      <filename>favicon.ico</filename>
    </removed>
  </removed>
  <parents type="array">
    <parent>
      <id>cad1f03a68501c64939564d51a8bb50592c9eb92</id>
    </parent>
  </parents>
  <author>
    <name>Henrik Berggren</name>
    <email>hinke@hinkeb.com</email>
  </author>
  <url>http://github.com/ericw/onelinr/commit/de0ba9fc105d8708d9725aa75cc10afeea5363eb</url>
  <id>de0ba9fc105d8708d9725aa75cc10afeea5363eb</id>
  <committed-date>2008-08-11T16:18:25-07:00</committed-date>
  <authored-date>2008-08-11T16:18:25-07:00</authored-date>
  <message>Added textile support, date formatting, skiplist and escaped dangerous chars</message>
  <tree>9de8ddc4a320ef48efea7ff4b69b1e36c2aa80bb</tree>
  <committer>
    <name>Henrik Berggren</name>
    <email>hinke@hinkeb.com</email>
  </committer>
</commit>
