Index: openacs-4/packages/acs-templating/www/doc/no-quote-upgrade.adp =================================================================== RCS file: /usr/local/cvsroot/openacs-4/packages/acs-templating/www/doc/no-quote-upgrade.adp,v diff -u -r1.6.2.6 -r1.6.2.7 --- openacs-4/packages/acs-templating/www/doc/no-quote-upgrade.adp 6 Jun 2023 09:30:30 -0000 1.6.2.6 +++ openacs-4/packages/acs-templating/www/doc/no-quote-upgrade.adp 13 Jul 2023 12:48:33 -0000 1.6.2.7 @@ -68,7 +68,8 @@ <input name=var2 value="value2"> ... real form stuff ... </form> - + + ACS has a convenience function for creating hidden form variables, export_form_vars @@ -78,7 +79,8 @@ In that case, the Tcl code would set the HTML code to a variable:
 set form_vars [export_vars -form {var1 var2}]
-      
+ + The ADP will simply refer to the form_vars variable: @@ -87,7 +89,8 @@ \@form_vars\@ <!-- WRONG! Needs noquote --> ... real form stuff ... </form> - + + This will no longer work as intended because form_vars @@ -102,7 +105,8 @@ \@form_vars;noquote\@ ... real form stuff ... </form> - + +

Snippets of HTML produced by Tcl code, aka widgets @@ -149,12 +153,14 @@ <h1>\@heading\@</h1> <slave> </body> - slave:

+      
+
slave:
 <master>
 <property name="title">\@title\@</property>
 <property name="heading">\@title\@</property>
 ...
-      
+ + The obvious intention of the master is to allow its slave templates @@ -209,20 +215,23 @@ <property name="doc(title)">\@title;literal\@</property> <property name="heading">\@title;literal\@</property> ... - + +

The exact same problems when the include statement passes some text. Here is an example:

Including template:
 <include src="user-kick-form" id=\@kicked_id\@ reason=\@default_reason\@>
-      
Included template:
+      
+
Included template:
 <form action="do-kick" method=POST>
   Kick user \@name\@.<br>
   Reason: <textarea name=reason>\@reason\@</textarea><br>
   <input type="submit" value="Kick">
 </form>
-      
+ +
Here an include statement is used to include an HTML form widget @@ -240,7 +249,8 @@
Including template, sans over-quoting:
 <include src="user-kick-form" id=\@kicked_id;literal\@ reason=\@default_reason;literal\@>
-      
+ +

Upgrade Overview.