changeset 5:550dede362d5 tip

example flowerbed markup
author Jeff Hammel <jhammel@mozilla.com>
date Sat, 25 Dec 2010 16:01:29 -0800
parents 592271f54816
children
files flowerbed.html flowerbed.ini
diffstat 2 files changed, 121 insertions(+), 4 deletions(-) [+]
line wrap: on
line diff
new file mode 100644
--- /dev/null
+++ b/flowerbed.html
@@ -0,0 +1,110 @@
+<html>
+<head>
+<title>flowerbed</title>
+
+<style type="text/css">
+dt {
+float: left;
+clear: left;
+font-style: italic;
+}
+
+dt::after { content: ": "; 
+}
+
+dd {
+font-family: monospace;
+}
+
+div.app, div.conditions { 
+text-align: center;
+align: center;
+}
+
+div.app { 
+width: 200px; 
+margin: 10px;
+}
+
+div.app {
+border: thin black solid;
+background: red;
+}
+
+div.conditions {
+background: lightblue;
+}
+
+div.options {
+background: orange;
+}
+
+ol {
+list-style-type: square;
+}
+
+div.apps > span:first-child,
+div.app > span:first-child
+{
+font-family: sans-serif;
+font-weight: bold;
+color: #222;
+}
+
+div.apps > span:first-child {
+border: thin solid black;
+background: red;
+}
+
+</style>
+
+</head>
+<body>
+<div class="apps">
+  <span class="name">Your site</span>
+  <ol class="apps">
+    <li class="app">
+      <div class="app">
+        <span class="name">config</span>
+        <div class="conditions">
+          <span class="name">conditions</span>
+          <dl></dl>
+          <input type="button" value="+"/>
+        </div>
+        <div class="options">
+          <dl>
+            <dt>factory</dt>
+            <dd>%(self)s</dd>
+          </dl>
+        </div>
+      </div>
+    </li>
+    <li class="app">
+      <div class="app">
+        <span class="name">json</span>
+
+        <div class="conditions">
+          <span class="name">conditions</span>
+          <dl class="conditions">
+            <dt>path</dt><dd>/json</dd>
+          </dl>
+          <input type="button" value="+"/>
+        </div>
+
+        <div class="options">
+          <span class="name">options</span>
+          <dl>
+            <dt>factory</dt>
+            <dd>%(self)s</dd>
+          </dl>
+        </div>
+      </div>
+    </li>
+    <li>
+      <input type="button" value="+"/>
+    </li>
+  </ol>
+</span>
+
+</body>
+</html>
--- a/flowerbed.ini
+++ b/flowerbed.ini
@@ -1,8 +1,15 @@
 [:app]
-apps = site
+apps = config json
 
-[site:app]
+[config:app]
 factory = flowerbed.web:Configurator
 
-[site:options]
-factory = %(self)s
\ No newline at end of file
+[config:options]
+factory = %(self)s
+
+[json:app]
+factory = /wsgiblob.web:JSONhandler
+path = /json
+
+[json:options]
+factory = %(self)s