Forum OpenACS Development: Re: Better support for the <tcl> tag in templating

Collapse
Posted by Jeff Davis on
Why are you putting tcl in the adp in the first place? I think it would be a mistake to add overhead to the multiple tag to facilitate what I think is generally a bad practice (mixing code and markup). Are you sure you would not be better off with the code in the .tcl file to begin with?

In this specific case I guess you are trying to interpolate a url var with another var but wouldn't this be clearer:

 
db_foreach get_shipping_url {select tracking_url,tracking_number ... } { 
    set tracking_url [subst $tracking_url]
}
or something similiar...