--
You received this message because you are subscribed to the Google Groups "TurboGears" group.
To unsubscribe from this group and stop receiving emails from it, send an email to turbogears+unsubscribe@googlegroups.com.
To post to this group, send email to turbo...@googlegroups.com.
Visit this group at https://groups.google.com/group/turbogears.
For more options, visit https://groups.google.com/d/optout.
I was trying to make the class of the div dependent on two variables.
X = class a
Not X and y = class b
Not X and not y = class C
The problem is you cannot have a conditional open tag and the close elsewhere. Eg
<py:if test="thing">
<div class="a">
</py:if>
<py:else>
<div class="b">
</py:else>
Words go here
</div>
It says that the div tag is closed by the py:if tag
Is the Right Way to put my "words go here" into a def and just repeat the div stack? E.g if div function /div /if
Or is there another way?
To unsubscribe from this group and stop receiving emails from it, send an email to turbogears+...@googlegroups.com.
To post to this group, send email to turbo...@googlegroups.com.
Visit this group at https://groups.google.com/group/turbogears.
For more options, visit https://groups.google.com/d/optout.
--
You received this message because you are subscribed to the Google Groups "TurboGears" group.
To unsubscribe from this group and stop receiving emails from it, send an email to turbogears+...@googlegroups.com.
To post to this group, send email to turbo...@googlegroups.com.
Visit this group at https://groups.google.com/group/turbogears.
For more options, visit https://groups.google.com/d/optout.
I was trying to make the class of the div dependent on two variables.
X = class a
Not X and y = class b
Not X and not y = class CThe problem is you cannot have a conditional open tag and the close elsewhere. Eg
<py:if test="thing">
<div class="a">
</py:if>
<py:else>
<div class="b">
</py:else>
Words go here
</div>
--
You received this message because you are subscribed to the Google Groups "TurboGears" group.
To unsubscribe from this group and stop receiving emails from it, send an email to turbogears+...@googlegroups.com.
To post to this group, send email to turbo...@googlegroups.com.
Visit this group at https://groups.google.com/group/turbogears.
For more options, visit https://groups.google.com/d/optout.
Thanks for that, it fixed that component of the templates.Unfortunately, I'll probably have to go back to Mako because it requires some very strict requirements of the templates. I haven't worked out why, but I get duplicate icons in my lists. Also things like <div class="clearfix" /> do some very strange things.
The killer is, Mako lets me template javascript, I just couldn't get Kajiki to handle it properly.
--
You received this message because you are subscribed to the Google Groups "TurboGears" group.
To unsubscribe from this group and stop receiving emails from it, send an email to turbogears+...@googlegroups.com.
To post to this group, send email to turbo...@googlegroups.com.
Visit this group at https://groups.google.com/group/turbogears.
For more options, visit https://groups.google.com/d/optout.