sites/www.qmsk.net/page.py
branchsites
changeset 42 5a72c00c4ae4
parent 34 09196d5b2a39
equal deleted inserted replaced
41:9585441a4bfb 42:5a72c00c4ae4
    97         """
    97         """
    98             Renders the fs's layout template with this page + menu
    98             Renders the fs's layout template with this page + menu
    99         """
    99         """
   100 
   100 
   101         # render the template
   101         # render the template
   102         response_data = template.render(self.fs.template,
   102         response_data = template.TemplateLoader.render_template(self.fs.template,
   103             request         = request,
   103             req             = request,
   104             site_root_url   = request.get_script_dir(),
       
   105             site_page_url   = request.get_page_prefix(),
       
   106             page            = self,
   104             page            = self,
   107             menu            = menu.Menu(self.fs, self),
   105             menu            = menu.Menu(self.fs, self),
   108         )
   106         )
   109         
   107         
   110         # return the response
   108         # return the response