This might not be so important in this example, but when you are working 
with lots of embeded HTML and just want to get a element in a tag, it 
could be a more valid issue.

I have an application where we have skinned all the layout and design.

But, IF the PSP parser doesn't act as it's supposed to, it's a bug.  
According to the spec, the example code should work.  If it doesn't we 
need to fix it. :)




On Monday, June 25, 2001, at 11:15 AM, David Casti wrote:

>
>> I just can't stand using braces for block delimiting,
>> can't we have something like the code below work in
>> PSP?
>>
>> <% for i in range(5): $%>
>> <%= i %> <% [tab]z=i*i [tab]res.write(z) $%> <% 
>> [tab]res.write(i*i*i) $%>
>> <% end %>
>
> I find that it's just easier to write all my python code with normal 
> indents inside <% %> and use res.write instead of <%= or any special 
> PSP tokens.  So, a for loop would look something like this:
>
> <%
> for i in range(5):
>     res.write(i)
>     z = i * i
>     res.write(z)
>     res.write(i * i * i)
> res.write (all done!<p>}
> %>
>
> I have yet to find an application where this doesn't work, and it seems 
> a lot easier to read.  Have you run into a problem writing the code out 
> like this?
>
>
> -----------------------------------------------------------------
> David Casti                                       Managing Partner
> Neosynapse                                      www.neosynapse.net
>
>
> _______________________________________________
> Webware-discuss mailing list
> [EMAIL PROTECTED]
> http://lists.sourceforge.net/lists/listinfo/webware-discuss
>

_______________________________________________
Webware-discuss mailing list
[EMAIL PROTECTED]
http://lists.sourceforge.net/lists/listinfo/webware-discuss

Reply via email to