%args>
String[] names;
String externalLink;
String cgiParamName = null;
%args>
Customer Name |
Account Page |
<%for String name : names %>
<%doc>Call a subtemplate to build each row of the table.%doc>
<& row; name = name; link = externalLink; cgiParam = cgiParamName &>
%for>
<%doc>A sub-template to construct each row of the table.%doc>
<%def row>
<%args>
String name;
String link;
String cgiParam;
%args>
<% name %> |
<& generateLink; link = link; name = cgiParam;
value = name &> |
%def>
<%doc>This sub-template builds a URL.%doc>
<%def generateLink>
<%args>
String link;
String name = null;
String value;
%args>
<%doc> The following emit tags use '#u' to force URL style
escaping for the CGI parameters. (The 'link' should already
be in proper format.)%doc>
">
Account information for <% name %>
%def>