Beefy Boxes and Bandwidth Generously Provided by pair Networks
There's more than one way to do things
 
PerlMonks  

Re: Import Constants From File to Templates? (outside-in) (updated)

by LanX (Saint)
on Dec 04, 2021 at 18:50 UTC ( [id://11139392]=note: print w/replies, xml ) Need Help??

Help for this page

Select Code to Download


  1. or download this
        my $tt = Template->new(
            {
    ...
            }
        ) || die "$Template::ERROR\n";
        $tt->process( $email_args{text_template},
    
  2. or download this
    package Sam::Constants;
    use Template;
    ...
                VARIABLES => { ... },
            }
        ) || die "$Template::ERROR\n";
    
  3. or download this
    package Sam::Constants;
    my @defaults_all = (... );
    ...
    use Sam::Constants qw/foo/;
    my $tt = foo(LOCAL_CFG);
    $tt->process();
    

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://11139392]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others romping around the Monastery: (4)
As of 2024-04-25 23:26 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found