mirror of
https://github.com/freedombox/FreedomBox.git
synced 2026-11-29 08:25:10 +00:00
Migrate from Cheetah to Django template system
Compiled templates are an unnecessary pain in maintance and packaging. If each module is to bring its own templates, compiling them in the build process becomes unnecessarily more complex. The current state of template mess can somewhat be attributed to this. Cheetah only partially supports dynamic templates. It does not support inheritence of dynamic templates. From its documentation: "There is no support for extending from a class that is not imported; e.g., from a template dynamically created from a string. Since the most practical way to get a parent template into a module is to precompile it, all parent templates essentially have to be precompiled."
This commit is contained in:
1 parent
d7a3235120
commit
9239d2c627
9 files changed
+122
-158
No files matched your search
@@ -0,0 +1,24 @@
|
||||
{{ extends "base.html" }}
|
||||
|
||||
{% block css %}
|
||||
<!-- CSS from previous template, not sure what to keep yet -->
|
||||
<!--<link rel="stylesheet" href="{{ basehref }}/static/theme/style-plinth-2col.css" />-->
|
||||
{% endblock %}
|
||||
|
||||
{% block add_sidebar_left %}
|
||||
<div class="span3">
|
||||
<div class="well sidebar-nav">
|
||||
{% block nav_block %}
|
||||
{{ nav }}
|
||||
{% endblock %}
|
||||
{% block sidebar_left_block %}
|
||||
{{ sidebar_left }}
|
||||
{% endblock %}
|
||||
</div><!--/.well -->
|
||||
<div class="well sidebar-nav">
|
||||
{% block sidebar_right_block %}
|
||||
{{ sidebar_right }}
|
||||
{% endblock %}
|
||||
</div><!--/.well -->
|
||||
</div><!--/span-->
|
||||
{% endblock %}
|
||||
Reference in new issue
Block a user