Index: openacs-4/packages/acs-templating/www/doc/tagref/include-optional.html =================================================================== RCS file: /usr/local/cvsroot/openacs-4/packages/acs-templating/www/doc/tagref/include-optional.html,v diff -u --- /dev/null 1 Jan 1970 00:00:00 -0000 +++ openacs-4/packages/acs-templating/www/doc/tagref/include-optional.html 20 Nov 2002 00:57:10 -0000 1.1 @@ -0,0 +1,57 @@ + +
++The include-optional tag is used to include another template +in the current template, but make some other chunk dependent on whether or +not the included template returned something. +
+ ++This is useful if, say, you want to wrap the template with some HTML, +for example, a frame in a portal, but if there's nothing to show, +you don't want to show the frame either. +
+ ++<include-optional src="blog-months"> + <tr> + <th bgcolor="@header_background_color@"> + Archive + </th> + </tr> + <tr> + <td nowrap align="center"> + <include-output> + </td> + </tr> + <tr> + <td height="16"> + <table><tr><td></td></tr></table> + </td> + </tr> +</include-optional> ++ +
<list>
<if>
<include>
+ <include-optional>
<property>
<noparse>
<master>