Index: openacs-4/packages/acs-templating/www/doc/guide/master.adp =================================================================== RCS file: /usr/local/cvsroot/openacs-4/packages/acs-templating/www/doc/guide/master.adp,v diff -u -r1.4 -r1.5 --- openacs-4/packages/acs-templating/www/doc/guide/master.adp 7 Aug 2017 23:48:03 -0000 1.4 +++ openacs-4/packages/acs-templating/www/doc/guide/master.adp 25 Apr 2018 08:42:18 -0000 1.5 @@ -65,8 +65,7 @@ <tr><td colspan="3"><!-- FOOTER --></td></tr> -</table></body></html> - +</table></body></html>

The only special feature of this master template is the slave tag, which marks the location of the content area. Note that the content is inserted into the master template as a @@ -78,15 +77,13 @@

Write the Page Template(s)

A page template must include a master tag to specify that its output should be enclosed in a master template:

-
-<master src="/templates/master">
+
<master src="/templates/master">
 
 <!--Begin layout of page content-->
 <h3>\@title\@</h3>
 <p>by \@name\@</p>
 <p><b>\@byline\@</b>: \@text</p>
-...
-
+...

The master tag may be included anywhere in the body of the page template, although usually the top of the file is the best location for it.

@@ -98,31 +95,26 @@ personalized. The Tcl script associated with the master template would include code like this:

-set user_name [your_procedure_to_get_the_current_user_name]
-
+set user_name [your_procedure_to_get_the_current_user_name]

The template would have a section like this:

-
-<if \@user_name\@ nil>
+
<if \@user_name\@ nil>
   <a href="/register.acs">Register Now!</a>
 </if>
 <else>
   \@user_name\@ (<a href="/signout.acs">Sign Out</a>)
-</else>
-
+</else>

Passing Property Values from the Page Template to Master Template

As mentioned above, in many cases the dynamic elements of the master template depend on whatever is appearing in the content area for a particular request. The property tag may be used in the page template to specify values that should be passed to the master template:

-
-<master src="/templates/master">
+
<master src="/templates/master">
 <property name="title">\@title\@</property>
 
 <!--Begin layout of page content-->
-...
-
+...

In this case, the property tag establishes title as a data source for the master template. Properties are set as regular Tcl variables prior to executing the