X-Git-Url: http://git.onelab.eu/?a=blobdiff_plain;f=unfold%2Fprelude.py;h=f576ed3d8931d00a8f6b72f5c06fdc41ba0937f8;hb=45273da0859095cd4e7565f7ea0fc1496ef2f2de;hp=20beb7db4f49b189ed2e37d6a3a62f6035f5b4d6;hpb=b709866ba93d98c32127ff4deae5b783e271e5b3;p=unfold.git diff --git a/unfold/prelude.py b/unfold/prelude.py index 20beb7db..f576ed3d 100644 --- a/unfold/prelude.py +++ b/unfold/prelude.py @@ -48,14 +48,14 @@ class Prelude: # env['js_chunks']= '\n'.join(self.js_chunks) # env['css_chunks']='\n'.join(self.css_chunks) # return env - # together with this in layout-myslice.html + # together with this in layout-unfold2.html # {% for js_file in js_files %} {% insert_str prelude js_file %} {% endfor %} # {% for css_file in css_files %} {% insert_str prelude css_file %} {% endfor %} # somehow however this would not work too well, # probably insert_above is not powerful enough to handle that # # so a much simpler and safer approach is for use to compute the html header directly - def template_env (self): + def prelude_env (self): env={} env['js_files']= self.js_files env['css_files']= self.css_files @@ -68,5 +68,5 @@ class Prelude: from myslice.settings import STATIC_URL env ['STATIC_URL'] = STATIC_URL # render this with prelude.html and put the result in header_prelude - header_prelude = render_to_string ('header-prelude.html',env) + header_prelude = render_to_string ('prelude.html',env) return { 'header_prelude' : header_prelude }