Article:
  Mod_python's PSP: Python Server Pages
Subject:   print "Hello"
Date:   2004-04-17 14:37:35
From:   M-a-S
I think it would be great if this worked:


<%
...
print expression
...
%>


Otherwise one have to write


<%
...
%><%= expression %><%
...
%>


instead. Am I right?

Full Threads Oldest First

Showing messages 1 through 1 of 1.

  • print "Hello"
    2004-08-25 16:31:32  Ikeuchi [View]

    There's a way, just forget the print, use instead req.write().
    <%
    req.write(expression)
    %>