if statement sucks or i need to rest
i just wanted to use special if statement, like explained in the django doc:
{% if "blog" not in page.module.name %}{{page.title}}{% endif %}
(without that line, all gones well.)
But, i'm falling on an error:
INFO:Processing /index.html[2009-12-21 15:21:46,495]
***********************
Error while rendering page /index.html
***********************
Generation Failed
(, TemplateSyntaxError("'if' statement improperly formatted",), )
Who's wrong. Me or the templates ?
And why don't use the Jinja template engine it's like django, but better for a project like yours...
{% if "blog" not in page.module.name %}{{page.title}}{% endif %}
(without that line, all gones well.)
But, i'm falling on an error:
INFO:Processing /index.html[2009-12-21 15:21:46,495]
***********************
Error while rendering page /index.html
***********************
Generation Failed
(, TemplateSyntaxError("'if' statement improperly formatted",), )
Who's wrong. Me or the templates ?
And why don't use the Jinja template engine it's like django, but better for a project like yours...
1
person has this problem
I have this problem, too!
Tell me when someone solves it.
The more people who report this problem, the more it gets noticed.
The more people who report this problem, the more it gets noticed.
The company marked this problem solved.
-
Inappropriate?xrogaan,
Have you tried this:
{% ifnotequal "blog" page.module.name %}
{{page.title}}
{% endifnotequal %}
-----------------------------
I really want to add support for Jinja and cheetah. Haven't found the time yet. Will do so soon.
-----------
Hope this solves your problem. Feel free to contact me on email or twitter.
I’m confident
The company and 1 other person say
this solves the problem
-
Inappropriate?I'm using ifequal instead of if .. not in ..
So, it's fixed. But i need a lot of sleep.
Could you think to Jinja ?
Edit: ok. Posting in the same time. BTW it's awesome !
I’m silly
-
Inappropriate?xrogaan,
I will add support Jinja support as soon as I can find some time :) Glad you like it.
I’m happy
Loading Profile...



EMPLOYEE