Changeset 1127 for branches/0.8(django)/PyLucid/index.py
- Timestamp:
- 06/29/07 16:05:08 (17 months ago)
- Files:
-
- 1 modified
-
branches/0.8(django)/PyLucid/index.py (modified) (3 diffs)
Legend:
- Unmodified
- Added
- Removed
-
branches/0.8(django)/PyLucid/index.py
r1121 r1127 40 40 from PyLucid.system.URLs import URLs 41 41 42 from PyLucid.tools.content_processors import apply_markup, render_template 42 from PyLucid.tools.content_processors import apply_markup, \ 43 render_string_template 43 44 44 45 … … 63 64 ) 64 65 65 current_page.content = render_ template(current_page.content, context)66 current_page.content = render_string_template(current_page.content, context) 66 67 67 68 template = current_page.template 68 69 template_content = template.content 69 70 70 html = render_template(template_content, context) 71 72 # import cgi, pprint 73 # print context 74 # debug = "<hr/><pre>%s</pre></html>" % cgi.escape(pprint.pformat(context)) 75 # html = html.replace("</html>", debug) 76 71 html = render_string_template(template_content, context) 77 72 return HttpResponse(html) 78 73 … … 107 102 # For additional JavaScript and StyleSheet information. 108 103 # JS+CSS from internal_pages or CSS data for pygments 104 # Add into the context object. Would be integraged in the page with the 105 # additional_content middleware. 109 106 context["js_data"] = [] 110 107 context["css_data"] = [] 108 109 # Add the context to the reponse object. 110 # Used in PyLucid.middlewares.additional_content 111 request.CONTEXT = context 111 112 112 113 return context
