Help! IIS and Python
Jason Orendorff
jason at jorendorff.com
Sat Feb 16 23:42:28 EST 2002
> ...
> for i in range(5):
> %>
> <%= formatter % i %>
>
> Perhaps the issue is that I don't know how the <%= form is actually
> implemented in Python/ASP. If it is just a textual substitition
> [...], then I understand why it is not possible.
It is a textual substitution.
I'd be tempted to try something like:
...
for i in range(5):
%>
<p>Foo...
<%= formatter % i %>
...bar</p>
<%
%>
Note that I have the '%>'s and '<%'s rather carefully
lined up as if they were Python statements.
## Jason Orendorff http://www.jorendorff.com/
More information about the Python-list
mailing list