<?xml version="1.0" encoding="UTF-8"?>
<commit>
  <added type="array"/>
  <modified type="array">
    <modified>
      <diff>@@ -5,7 +5,14 @@
     &lt;link rel=&quot;stylesheet&quot; href=&quot;style/main.css&quot; type=&quot;text/css&quot;&gt;
   &lt;/head&gt;
   &lt;body&gt;
-    &lt;h1&gt;Toast - Join a Channel:&lt;/h1&gt;
+    &lt;h1&gt;Toast - Join a Channel (or Create one):&lt;/h1&gt;
+    &lt;form id=&quot;new_channel&quot; action=&quot;#&quot;&gt;
+      
+      &lt;p&gt;&lt;label for=&quot;name&quot;&gt;Channel Name&lt;/label&gt; &lt;input type=&quot;text&quot; name=&quot;name&quot; value=&quot;&quot; id=&quot;name&quot;&gt;&lt;/p&gt;
+      &lt;p&gt;&lt;label for=&quot;message&quot;&gt;Initial Message&lt;/label&gt; &lt;input type=&quot;text&quot; name=&quot;message&quot; value=&quot;&quot; id=&quot;message&quot;&gt;
+      &lt;/p&gt;
+      &lt;p&gt;&lt;input type=&quot;submit&quot; value=&quot;Go &amp;rarr;&quot;&gt;&lt;/p&gt;
+    &lt;/form&gt;
     &lt;ul id=&quot;channels&quot;&gt;&lt;/ul&gt;
   &lt;/body&gt;
   &lt;script src=&quot;/_utils/script/json2.js&quot;&gt;&lt;/script&gt;
@@ -14,11 +21,18 @@
   &lt;script src=&quot;vendor/couchapp/jquery.couchapp.js&quot;&gt;&lt;/script&gt;
   &lt;script type=&quot;text/javascript&quot; charset=&quot;utf-8&quot;&gt;
     $.CouchApp(function(app) {
-      app.view(&quot;channels&quot;,{success: function(json) {
+      app.view(&quot;channels&quot;,{group_level: 1, success: function(json) {
         $(&quot;#channels&quot;).html(json.rows.map(function(row) {
           return '&lt;li&gt;'+JSON.stringify(row)+'&lt;/li&gt;';
         }).join(''));
       }});
+      
+      $(&quot;#new_channel&quot;).submit(function() {
+        var name = $('#name').val();
+        var message = $('#message').val();
+        app.db.saveDoc({channel:name,message:message});
+        return false;
+      });
     });
   &lt;/script&gt;
 &lt;/html&gt;</diff>
      <filename>_attachments/index.html</filename>
    </modified>
    <modified>
      <diff>@@ -1,4 +1,3 @@
 {
-  &quot;include_design&quot;: true,
   &quot;local_seq&quot;: true        
 }
\ No newline at end of file</diff>
      <filename>options.json</filename>
    </modified>
  </modified>
  <removed type="array"/>
  <parents type="array">
    <parent>
      <id>c1477c2886730aa38dedba8f6e28d2dcdb2c36ae</id>
    </parent>
  </parents>
  <author>
    <name>Chris Anderson</name>
    <email>jchris@grabb.it</email>
  </author>
  <url>http://github.com/jchris/toast/commit/8a249dd3643fb928ed917b193f1bd2a41b1a95a6</url>
  <id>8a249dd3643fb928ed917b193f1bd2a41b1a95a6</id>
  <committed-date>2009-05-22T19:21:20-07:00</committed-date>
  <authored-date>2009-05-22T19:21:20-07:00</authored-date>
  <message>added channel handler</message>
  <tree>831514926b5c19de34df83a474f293f2657f8e1a</tree>
  <committer>
    <name>Chris Anderson</name>
    <email>jchris@grabb.it</email>
  </committer>
</commit>
