Login | Register For Free | Help
Search for: (Advanced)

Mailing List Archive: Cherokee: commits

[4217] CTK/trunk/CTK/Page.py: WPI: Two new template variables.

 

 

Cherokee commits RSS feed   Index | Next | Previous | View Threaded


cherokee at cherokee-project

Feb 8, 2010, 9:32 AM

Post #1 of 1 (81 views)
Permalink
[4217] CTK/trunk/CTK/Page.py: WPI: Two new template variables.

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']:

Cherokee commits RSS feed   Index | Next | Previous | View Threaded
 
 


Interested in having your list archived? Contact Gossamer Threads
 
  Web Applications & Managed Hosting Powered by Gossamer Threads Inc.