Index: openacs-4/packages/acs-templating/www/doc/guide/composite.html =================================================================== RCS file: /usr/local/cvsroot/openacs-4/packages/acs-templating/www/doc/guide/composite.html,v diff -u -r1.1 -r1.2 --- openacs-4/packages/acs-templating/www/doc/guide/composite.html 13 Mar 2001 22:59:27 -0000 1.1 +++ openacs-4/packages/acs-templating/www/doc/guide/composite.html 10 Jun 2015 12:09:59 -0000 1.2 @@ -17,11 +17,11 @@ may have the following structure.

- +
master - +
top @@ -31,8 +31,8 @@ root (main)

-   -
+   +
widget
@@ -57,109 +57,109 @@

The parts are - put together with the <<include> tag (in the diagram below, black links going right) and - the <<master> tag (brown link going left); and the concept is similar to a procedure call. The structure of the composite page looks like this as a graph.

- +
- + - + - + - - - - - - + + + + + + - - - - + + + + - - - + - + - + - + - + - + - - - - - - + + + + + + + - - + + - + - - + + - + - + - + - + - + - +
root root
 code   template 
- - + +
- - + +
- + + - + +
master  code   template   code   template  widget
- - - - + + + +
-
 code   template   code   template 
topbottomtopbottom
@@ -188,27 +188,27 @@

- - + + - - - - + + + + - - - + + + - + - + - + - +
root.tcl
root.adp
root.tcl
root.adp (beginning and middle)
 widget.tcl
widget.adp
root.adp
 widget.tcl
widget.adp
root.adp (end)
 master.tcl
master.adp
 master.tcl
master.adp (beginning)
 
  top.tcl
top.adp
master.adp
master.adp (middle, containing <slave> tag)
 
  bottom.tcl
bottom.adp
master.adp
master.adp (end)
@@ -239,25 +239,25 @@ set_file again, we get the following picure.

- +
- + - + - - - + + + @@ -267,7 +267,7 @@

This assumes page "A" was originally wanted. An arrow () exits from code + src="down.gif" width="7" height="15" align="top">) exits from code which calls template::set_file (directly or through ad_return_template). All scripts and the template are executed in the same scope, i.e., they share @@ -279,11 +279,11 @@ possibilities.

-
code A (template A ignored)
code B (template B ignored)
...
...
code Z
+
- + - +
a)a) code template