On Friday, November 8, 2002, at 09:35 AM, Dossy wrote:

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>
        }
    }
    %>
The only reason I do the other thing is that the method you're using is
really hostile to Dreamweaver, Mozilla Composer, or GoLive.  I can edit my
HTML in my WYSIWYG editor, and some of the editors include facilities for
doing thing sitewide that are just as good as ns_adp_include, but don't
require a runtime execution ("Why Grandma, what a static page you have."
"The better to cache you with, my dear").

My personal preference is not to force HTML to be edited in a text editor,
 where possible.

Reply via email to