Skip to content

Commit 45e7a9e

Browse files
committed
Arreglando el manso cagazo
1 parent d1e8d57 commit 45e7a9e

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

organization_profiles/views.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -19,14 +19,14 @@ def read_template_as_string(path, file_source_path=__file__):
1919
return result
2020

2121

22-
compiler = Compiler()
23-
base_template = compiler.compile(u'<!DOCTYPE html><html lang="es">{{> head}}<body><div>{{> nav}}<div class="container content_padding">{{> content}}</div></div>{{> footer}}</body></html>')
24-
head = compiler.compile(get_template("_head.html").render({}))
25-
footer = compiler.compile(get_template("_footer.html").render({}))
2622

2723

2824
class HandleBarsResponse(HttpResponse):
2925
def __init__(self, source, obj, **kwargs):
26+
compiler = Compiler()
27+
base_template = compiler.compile(u'<!DOCTYPE html><html lang="es">{{> head}}<body><div>{{> nav}}<div class="container content_padding">{{> content}}</div></div>{{> footer}}</body></html>')
28+
head = compiler.compile(get_template("_head.html").render({}))
29+
footer = compiler.compile(get_template("_footer.html").render({}))
3030
content_template = compiler.compile(source)
3131
nav = compiler.compile(get_template("_navbar.html").render(obj))
3232
everything = base_template(obj, partials={"content": content_template,

0 commit comments

Comments
 (0)