Mercurial > hg > decoupage
changeset 14:4ca2530f8be1
stub for putting stylesheets and includes on templates"
author | k0s <k0scist@gmail.com> |
---|---|
date | Fri, 25 Dec 2009 17:20:06 -0500 |
parents | ab0c2bb4d23d |
children | 8923fda80bd4 |
files | decoupage/templates/index.html decoupage/web.py setup.py |
diffstat | 3 files changed, 6 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- a/decoupage/templates/index.html Fri Dec 25 04:20:21 2009 -0500 +++ b/decoupage/templates/index.html Fri Dec 25 17:20:06 2009 -0500 @@ -6,8 +6,10 @@ xmlns:xi="http://www.w3.org/2001/XInclude"> <head> <title>${title or path}</title> + <link py:for="sheet in stylesheets" rel="stylesheet" type="text/css" href="${sheet}"/> </head> <body> + <xi:include py:if="include" href="${include}"/> <ul> <li py:if="request.path_info.strip('/')"><a href="..">..</a></li> <li py:for="f in files">
--- a/decoupage/web.py Fri Dec 25 04:20:21 2009 -0500 +++ b/decoupage/web.py Fri Dec 25 17:20:06 2009 -0500 @@ -99,6 +99,9 @@ files = self.filedata(path, directory, conf) data = {'path': path, 'files': files, 'request': request } data['title'] = conf.get('/title') + data['direcory'] = directory + data['include'] = None + data['css'] = () # apply formatters # XXX this should be cached if not self.auto_reload