[Karrigell-main] Indentation in PIH
Brought to you by:
quentel
From: Pierre Q. <que...@wa...> - 2003-05-08 11:16:32
|
I've been discussing identation issues with Karrigell users and would = like to have an opinion on a better way to deal with it I propose to introduce a new couple of tags (say <%% and %%>) which mean = : inside these tags, all indentation must be taken into account to = produce the Python script, even for HTML parts (so there is no need for = <% end %> tags to decrement the indentation) For instance : <!-- start using indentation --> <%% <% for i in .... : %> <tr> <% if .... : %> <td> blabla </td> <% elif : %> <td> xoxox </td> </tr> %%> <!-- indentation off --> <table> <tr> <td>A cell</td> <tr> </table> Any feedback on this point would be helpful Pierre |