Thread Dynamische Navigation mit HTML::Template
(22 answers)
Opened by tonewheel at 2007-05-01 13:11
Was verstehst Du unter "dynamische Navigation"?
Mit ![]() Beispiel: Template.tmpl: Code: (dl
)
<html><body><TMPL_INCLUDE_VAR NAME=DYNAMIC_NAVI></body></html> Navi1.tmpl: Navi2.tmpl: Skript: Code (perl): (dl
)
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 #!/usr/bin/perl use strict; use warnings; use CGI; use HTML::Template::Compiled; my $file = './Template.tmpl'; my @navis = qw( navi1.tmpl navi2.tmpl); my $index = (int(rand 2) % 2); my $tmpl = HTML::Template::Compiled->new(filename => $file); $tmpl->param(DYNAMIC_NAVI => $navis[$index]); print CGI::header,$tmpl->output; OTRS-Erweiterungen (http://feature-addons.de/)
Frankfurt Perlmongers (http://frankfurt.pm/) -- Unterlagen OTRS-Workshop 2012: http://otrs.perl-services.de/workshop.html Perl-Entwicklung: http://perl-services.de/ View full thread Dynamische Navigation mit HTML::Template |