Forum OpenACS Q&A: Response to New template tag: include-optional

Collapse
Posted by Tom Jackson on

AOLserver's tcl api includes ns_adp_include. It used to have a switch -sameframe, however this was dropped at some point, thus breaking some of my code. Without the switch, the tcl proc worked pretty much like the ATS include tag. My version works like the proc with the switch. This might be where the naming and the semantics of the tag came from.

The include tag is actually doing something a little different in that the include tag will also source any associated tcl file (I think), whereas, my tag will not.

I used my tag to simplify the adp template, by separating out big chunks into separate files. Here is the link to ns_adp_include: http://aolserver.com/docs/devel/tcl/api/adp.html#ns_adp_include