changeset 5:550dede362d5 default 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
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/flowerbed.html	Sat Dec 25 16:01:29 2010 -0800
@@ -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	Thu Dec 23 14:18:15 2010 -0800
+++ b/flowerbed.ini	Sat Dec 25 16:01:29 2010 -0800
@@ -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