I don't really want stir up dust on this one, not too much, because it hasn't been a real hinderance for me, but the solution presented still would allow something like:
set username [ns_conn authuser]
if { [check $something] == 1 } {
%>
<i>Hello, <%= $username%> <i><br>
<b>break out of Tcl mode and process some HTML conditionally</b>
<%
}
Or what's better an iteration of somekind say placing fields into a table.
<TABLE>
<%
for {k j z} $listOstuff {
%>
<TR>
<TD><%= $k %></TD><TD><%= $j %></TD><TD><%= $z %></TD>
</TR>
<%
}
%>
</TABLE>
To me it would just making this kind of template stuff easier if you could break up the TCL as such.
My two-pennies.
Gene
------------------------------------------------------------------------------------------------
This is how I implement this:
<%
if {[check $something] == 1} {
ns_adp_puts {
<b>break out of Tcl mode and process some HTML
conditionally</b>
}
}
%>
Personal preference, I guess.
-- Dossy
--
Dossy Shiobara mail: [EMAIL PROTECTED]
Panoptic Computer Network web: http://www.panoptic.com/
"He realized the fastest way to change is to laugh at your own
folly -- then you can let go and quickly move on." (p. 70)