Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Invalid block tag: 'endif'. #34

Closed
OdifYltsaeb opened this issue Jan 15, 2014 · 1 comment
Closed

Invalid block tag: 'endif'. #34

OdifYltsaeb opened this issue Jan 15, 2014 · 1 comment

Comments

@OdifYltsaeb
Copy link

The question might concern classytags actually, but just in case - i'll write it here.

Consider this template for django-cms:

{% if something %}
{% else %}
{% load cms_tags sekizai_tags menu_tags %}
{% render_block "css" %}
{% render_block "js" %}
{% endif %}

Just this in template raises error - Invalid block tag: 'endif'. It does not matter what tag is the last one. Could be enblock just the same.

If you remove sekizay stuff, leaving template to:

{% if something %}
{% else %}
<h1>Hello world</h1>
{% endif %}

Then it renders just fine.

Error is generated within render_block templatetag code actually. If complete traceback is required then i can provide it, but i think creating simple test template for django-cms would work just fine. Using sekizai 0.7, classytags latest and django-cms 2.4.1

@ojii
Copy link
Collaborator

ojii commented Jan 16, 2014

@ojii ojii closed this as completed Jan 16, 2014
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants