- or download this
# Webroot & base dir
$conf->{'basePath'} = "/usr/local/www/cmstest";
...
PRE_CHOMP => 2,
TRIM => true
};
- or download this
my $templateSpec = $conf->{'defTemplateSpec'};
$templateSpec->{'OUTPUT_PATH'} = $conf->{'tt_output_path'};
- or download this
my $nodeTemplate = Template->new($templateSpec);
$nodeTemplate->process( "node/" .$node->{$nodeId}->{'template'},
$vars, "$nodeId.html" )
|| push @errors, $nodeTemplate->error();
- 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); %]