changeset 78:5330cd62e179

something about hash marks in filenames
author Jeff Hammel <jhammel@mozilla.com>
date Tue, 16 Apr 2013 00:45:31 -0700
parents ebf3d3c39cb7
children a8a74f6bcf93
files README.txt decoupage/web.py
diffstat 2 files changed, 10 insertions(+), 3 deletions(-) [+]
line wrap: on
line diff
--- a/README.txt
+++ b/README.txt
@@ -1,22 +1,21 @@
 decoupage
 =========
 
 what is it?
 -----------
 
-decoupage is a static file server that allows for index pages
+`decoupage` is a *dynamic* file server that allows for index pages
 configurable with genshi templates and .ini files.  I mainly wrote it
 because i was tired of using apache for serving my website and
 generating index.html files by hand.  Decoupage provides views into
 the filesystem.
 
 
-
 how do i use it?
 ----------------
 
 Set up a `paste <http://pythonpaste.org>`_ .ini file that specifies the
 directory to serve (``decoupage.directory``) and, optionally, a
 configuration file .ini file (``decoupage.configuraton``) which
 specifies the labels for the files based on directory. An example of a
 `paste <http://pythonpaste.org>`_ .ini file is in
@@ -79,17 +78,17 @@ all:
 title: 
     splits a description into a title and a description via a
     separator in 
     the description.  The template will now have an additional
     variable, 
     'title', per file
     Arguments:
     * separator: what separator to use (':' by default)
-    
+
 describe: 
     obtain the description from the filename
     the file extension (if any) will be dropped and
     spaces will be substituted for underscores
     
 ignore: 
     ignore files of a glob patterns.  
     These files will not be linked to in the template.
--- a/decoupage/web.py
+++ b/decoupage/web.py
@@ -1,12 +1,20 @@
 """
 decoupage: a view with webob to index and serve static content
 """
 
+# TODO:
+# files like `index.ini`
+# -> http://k0s.org/portfolio/ideas/#index.ini#
+#
+# oops. Handle it better
+# - either # is a magic hide character
+# - or you urlescape that guy
+
 import os
 import sys
 
 from contenttransformer.app import FileTypeTransformer
 from contenttransformer.app import transformers
 from datetime import datetime
 from formatters import formatters
 from genshi.builder import Markup