0001-misc-remove-support-for-ezt-format-in-skeletons-1952.patch
combo/public/templatetags/combo.py | ||
---|---|---|
32 | 32 |
register = template.Library() |
33 | 33 | |
34 | 34 |
def skeleton_text(context, placeholder_name, content=''): |
35 |
if context['request'].GET.get('format') == 'ezt': |
|
36 |
return '[if-any %s][%s][end]' % (placeholder_name, placeholder_name) |
|
37 | 35 |
return '{%% block placeholder-%s %%}{%% block %s %%}%s{%% endblock %%}{%% endblock %%}' % ( |
38 | 36 |
placeholder_name, placeholder_name, content) |
39 | 37 | |
40 |
- |