Help for this page

Select Code to Download


  1. or download this
    # Webroot & base dir
    $conf->{'basePath'}       = "/usr/local/www/cmstest";
    ...
                                   PRE_CHOMP    => 2,
                                   TRIM         => true
                                 };
    
  2. or download this
    my $templateSpec = $conf->{'defTemplateSpec'};
    $templateSpec->{'OUTPUT_PATH'} = $conf->{'tt_output_path'};
    
  3. or download this
    my $nodeTemplate = Template->new($templateSpec);
    
    $nodeTemplate->process( "node/" .$node->{$nodeId}->{'template'},
                                $vars, "$nodeId.html" )
          || push @errors, $nodeTemplate->error();
    
  4. or download this
    [% nodes.$node.data.textwidth = nodes.$node.data.width %]
    [% USE gd  = GD.Image(nodes.$node.data.width,nodes.$node.data.height);
    + %]
    ...
    [% wrapbox2.set(align => 'left', width => nodes.$node.data.textwidth);
    + %]
    [% wrapbox2.draw(xpos, 0); %] 
    [% gd2.png | stdout(1); %]