On 2002.11.08, Rogers Gene A Civ 96 CG/SCTOB <[EMAIL PROTECTED]> wrote: > 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> > <% > }
I'd implement this like this: <% set username [ns_conn authuser] if {[check $something] == 1} { ns_adp_puts [subst { <i>Hello, $username<i><br> <b>break out of Tcl mode and process some HTML conditionally</b> }] } %> I'd implement this: > <TABLE> > <% > for {k j z} $listOstuff { > %> > <TR> > <TD><%= $k %></TD><TD><%= $j %></TD><TD><%= $z %></TD> > </TR> > <% > } > %> > </TABLE> Like this: <TABLE> <% for {k j z} $listOstuff { ns_adp_puts [subst { <TR> <TD>$k</TD><TD>$j</TD><TD>$z</TD> </TR> }] } %> </TABLE> -- 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)