That can be especially annoying because:

1. Unlike regular python, a blank line break the block of code.

$if something:
....<p>In the if-block</p>
....<p>Still in</p>

....<p>Not in the if-block anymore!</p>

2. The $if, $for, etc. *must* be the first thing in a line (besides
spaces).
I would like to do something like this:

<li $if id == 'a': class="selected" $endif >...</li>
<li $if id == 'b': class="selected" $endif >...</li>

but instead I have to do the much uglier:

<li \
$if id=='a': class="selected"\
>...</li>
<li \
$if id=='b': class="selected"\
>...</li>



On 5 mayo, 07:45, Adam <[email protected]> wrote:
> 2009/5/5 magix <[email protected]>
>
>
>
> > adam: Do you mean that  indentation of python or  the  indentation of
> > templates html ?
>
> Of the templates, especially the parts that contain Python code.
>
> Regards,
>
> Adam
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"web.py" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [email protected]
For more options, visit this group at http://groups.google.com/group/webpy?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to