Index: openacs-4/packages/acs-templating/www/doc/migration.html =================================================================== RCS file: /usr/local/cvsroot/openacs-4/packages/acs-templating/www/doc/migration.html,v diff -u -r1.2 -r1.3 --- openacs-4/packages/acs-templating/www/doc/migration.html 30 Nov 2002 17:24:27 -0000 1.2 +++ openacs-4/packages/acs-templating/www/doc/migration.html 27 Oct 2014 16:40:14 -0000 1.3 @@ -16,15 +16,15 @@ separate code and graphical presentation. The latter goes into an ADP file; it contains essentially HTML, augmented by a few special tags and the @variable@ construct. - The code goes into a TCL script. In other words, a templated page - consists of two files, a TCL part that puts its results in data + The code goes into a Tcl script. In other words, a templated page + consists of two files, a Tcl part that puts its results in data sources, and an ADP page (the template), into which these data sources will be interpolated to yield a complete HTML page.

General

- As usual, the TCL page should start with a call to + As usual, the Tcl page should start with a call to ad_page_contract. In its -properties block you promise the data sources that your script will provide; they were earlier called page properties, hence the @@ -34,7 +34,7 @@ see below.

- At the end of the TCL script, you should call + At the end of the Tcl script, you should call ad_return_template. The template runs after the tcl script, and can use these data sources. @@ -177,8 +177,8 @@ } -set header [ad_header $title] + set context_bar [ad_context_bar \ [list "" "News"] $title] @@ -189,9 +189,9 @@ -set footer [ad_footer] + ad_return_template @@ -223,11 +223,10 @@ +<master> +<property name="doc(title)">@title@</property> +<property name="context">@context;noquote@</property> -@header@ -<h2>@title@</h2> -@context-bar@ - <hr> <p>Released @release_date@: @@ -236,7 +235,6 @@ @body@ </blockquote> -@footer@