Leser: 2
![]() |
|< 1 2 3 >| | ![]() |
22 Einträge, 3 Seiten |
1
2
3
4
5
6
7
8
9
10
11
12
13
14
#!/usr/bin/perl
use strict;
use warnings;
use HTML::Template;
use CGI::Carp qw(fatalsToBrowser);
my $tmpl = HTML::Template->new(filename =>'../templates/main.tmpl');
my $file = '../templates/test.tmpl';
$tmpl->param(FILE => $file);
print "Content-type: text/html\n\n";
print $tmpl->output();
<!-- TMPL_INCLUDE NAME=TMPL_VAR FILE -->
<TMPL_INCLUDE_VAR NAME="body_include">
$tmpl->param(body_include => 'beliebige_datei.tmpl');
HTML::Template::Compiled. Danke @pq!
Wie frage ich & perlintro
brian's Leitfaden für jedes Perl-Problem
Wie frage ich & perlintro
brian's Leitfaden für jedes Perl-Problem1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
#!G:\perl\bin\perl
use strict;
use warnings;
use CGI::Carp qw(fatalsToBrowser);
use HTML::Template::Compiled;
my $tmpl = HTML::Template::Compiled->new(filename =>'../templates/main.tmpl');
$tmpl->param(content => '../templates/test.tmpl');
print "Content-type: text/html\n\n";
print $tmpl->output();
<!-- TMPL_INCLUDE_VAR NAME="content" -->
<!-- TMPL_INCLUDE NAME="../templates/test.tmpl" -->
1
2
<!-- TMPL_INCLUDE_VAR NAME="content" -->
<!-- TMPL_INCLUDE NAME="../templates/test.tmpl" -->
FindBin zu arbeiten...
1
2
<!-- TMPL_INCLUDE_VAR NAME="content" -->
<!-- TMPL_INCLUDE NAME="../templates/test.tmpl" -->
Wie frage ich & perlintro
brian's Leitfaden für jedes Perl-Problem
Wie frage ich & perlintro
brian's Leitfaden für jedes Perl-Problem![]() |
|< 1 2 3 >| | ![]() |
22 Einträge, 3 Seiten |