Skip to content
This repository was archived by the owner on Nov 26, 2024. It is now read-only.
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
11 changes: 1 addition & 10 deletions fabfile/render.py
Original file line number Diff line number Diff line change
Expand Up @@ -105,19 +105,10 @@ def render_all():
g.compile_includes = True
g.compiled_includes = compiled_includes

bits = name.split('.')

# Determine which module the view resides in
if len(bits) > 1:
module, name = bits
else:
module = 'app'

view = globals()[module].__dict__[name]
view = app.app.view_functions[name]
content = view()

compiled_includes = g.compiled_includes

with open(filename, 'w') as f:
f.write(content.encode('utf-8'))