[Bio] / FigKernelPackages / TemplateObject.pm Repository:
ViewVC logotype

Diff of /FigKernelPackages/TemplateObject.pm

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 1.3, Sun Jul 30 08:14:35 2006 UTC revision 1.4, Thu Aug 10 07:30:00 2006 UTC
# Line 62  Line 62 
62  The template facility used is the PERL C<HTML::Template> facility, so  The template facility used is the PERL C<HTML::Template> facility, so
63  anything that follows the format of that facility will work. The  anything that follows the format of that facility will work. The
64  most common use of the facility is simple variable substition. In  most common use of the facility is simple variable substition. In
65  the fragment below, the variable is named Ctopic>.  the fragment below, the variable is named C<topic>.
66    
67      <p>This page tells how to do <TMPL_VAR NAME=TOPIC>.      <p>This page tells how to do <TMPL_VAR NAME=TOPIC>.
68    
# Line 149  Line 149 
149          # Here we're in Sprout, so we have a template. First, we compute          # Here we're in Sprout, so we have a template. First, we compute
150          # the template name.          # the template name.
151          my $requestPart = ($request ? "_$request" : "");          my $requestPart = ($request ? "_$request" : "");
152          $template = "${name}_tmpl$request.$type";          $template = "${name}_tmpl$requestPart.$type";
153          # Now we need to determine the template type and prefix the source location          # Now we need to determine the template type and prefix the source location
154          # onto it.          # onto it.
155          if ($FIG_Config::template_url) {          if ($FIG_Config::template_url) {

Legend:
Removed from v.1.3  
changed lines
  Added in v.1.4

MCS Webmaster
ViewVC Help
Powered by ViewVC 1.0.3