added a directory for hand-written, but automatically layouted pages. Now I can start to create stubs for all relevant keywords.

This commit is contained in:
phear 2010-04-17 11:45:36 +00:00
parent 4be46a339d
commit 40264c63fc
2 changed files with 33 additions and 0 deletions

View file

@ -0,0 +1,27 @@
<!DOCTYPE html>
<html xmlns="http://www.w3.org/1999/xhtml"
xmlns:xi="http://www.w3.org/2001/XInclude"
xmlns:py="http://genshi.edgewall.org/">
<xi:include href="../layout.html" />
<?python
title = "Brainstorming Online"
content01 = """
dieser moeglichst mehrzeilige Text sollte idealerweise spaeter automatisch HTML-escaped werden.
Aktuell klappen auch Umlaute hier drin noch nicht.
"""
?>
<head>
<title>${title}</title>
</head>
<body>
<h1>Foo</h1>
${content01}
<div class="small_form">
formular
</div>
</body>
</html>

View file

@ -337,6 +337,12 @@ def show_static(pagename=None):
value_dict = get_default_values()
return render(pagename, **value_dict)
@bobo.query('/node/:pagename')
def show_static(pagename=None):
""" meant for serving hand-changed, automatically styled content. """
value_dict = get_default_values()
return render("nodes/"+pagename, **value_dict)
def get_static_file(filename):
""" deliver a static file - this function is used internally """
response = webob.Response()