I'm using CGI::Application for a site I'm trying to intelligently design. I have a master template file that will be serving two purposes: 1 display output of a given run mode and 2 display a navigation tree. I load my template path in the cgiapp_prerun and I have the following example run_mode:
sub examplRM{
my $self = shift;
my $template = $self->load_tmpl('master.tmpl');
my $output = 'example'
$template->param( outputVar => $output);
return $template->output;
Now I have another method that loads a navigation bar:
sub exampleNav{
my $self = shift;
my @nav = qw(Nav1, Nav2, Nav3);
return \@nav;
}
What I would like to do is preload examplNav into my template object. So I don't have to recall the navigation method for additional run methods. Anybody have any suggestions?
Thanks in adavance!
s;;5776?12321=10609$d=9409:12100$xx;;s;(\d*);push @_,$1;eg;map{print chr(sqrt($_))."\n"} @_;
Posts are HTML formatted. Put <p> </p> tags around your paragraphs. Put <code> </code> tags around your code and data!
Titles consisting of a single word are discouraged, and in most cases are disallowed outright.
Read Where should I post X? if you're not absolutely sure you're posting in the right place.
Please read these before you post! —
Posts may use any of the Perl Monks Approved HTML tags:
- a, abbr, b, big, blockquote, br, caption, center, col, colgroup, dd, del, details, div, dl, dt, em, font, h1, h2, h3, h4, h5, h6, hr, i, ins, li, ol, p, pre, readmore, small, span, spoiler, strike, strong, sub, summary, sup, table, tbody, td, tfoot, th, thead, tr, tt, u, ul, wbr
You may need to use entities for some characters, as follows. (Exception: Within code tags, you can put the characters literally.)
| |
For: |
|
Use: |
| & | | & |
| < | | < |
| > | | > |
| [ | | [ |
| ] | | ] |
Link using PerlMonks shortcuts! What shortcuts can I use for linking?
See Writeup Formatting Tips and other pages linked from there for more info.