[Cherokee-commits] [4217] CTK/trunk/CTK/Page.py: WPI: Two new template variables.
SVN at cherokee-project.com
SVN at cherokee-project.com
Mon Feb 8 18:32:46 CET 2010
Revision: 4217
http://svn.cherokee-project.com/changeset/4217
Author: alo
Date: 2010-02-08 18:32:46 +0100 (Mon, 08 Feb 2010)
Log Message:
-----------
WPI: Two new template variables. Moving JS to the end.
Modified Paths:
--------------
CTK/trunk/CTK/Page.py
Modified: CTK/trunk/CTK/Page.py
===================================================================
--- CTK/trunk/CTK/Page.py 2010-02-08 16:59:55 UTC (rev 4216)
+++ CTK/trunk/CTK/Page.py 2010-02-08 17:32:46 UTC (rev 4217)
@@ -77,15 +77,18 @@
# Build the <head> text
self._headers += render.headers
head = "\n".join (uniq(self._headers))
+ js = HTML_JS_ON_READY_BLOCK %(render.js)
# Build the <body>
if not render.js:
body = render.html
else:
- body = render.html + HTML_JS_ON_READY_BLOCK %(render.js)
+ body = render.html + js
# Set up the template
self._template['head'] = head
+ self._template['html'] = render.html
+ self._template['js'] = js
self._template['body'] = body
if not self._template['body_props']:
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.octality.com/pipermail/cherokee-commits/attachments/20100208/a3bf81fa/attachment.htm
More information about the Cherokee-commits
mailing list