Re: Getting data from template?

"Wood, Brandon" <[email protected]> Wed, 28 Jan 2009 21:37:31 -0700
Newsgroups gmane.comp.lang.perl.modules.html-template
Message-ID <CFDEA18A5D113846848BB6B237A89210133E18F47E@idc1embx0004.corp.global.level3.com>
I would advise you to check out the following write up on using html::template.

http://www.perlmonks.org/?node_id=65642

You need to set all of your param and then::
print $template->output;
Level 3 Communications
Brandon Wood
(Via Blackberry)

----- Original Message -----
From: Lyle <[email protected]>
To: [email protected] <[email protected]>
Sent: Wed Jan 28 20:21:59 2009
Subject: [htmltmpl] Getting data from template?

Hi All,
  I'm trying to find a way to get data into my script from my template.
I've tried:-
<tmpl_var name=test default="HELLO!">
And then after loading the template in my code:-
print $template->param( 'test' );

But that doesn't work. Is there a way to pickup data from a template
you've read in?


Lyle


------------------------------------------------------------------------------
This SF.net email is sponsored by:
SourcForge Community
SourceForge wants to tell your story.
http://p.sf.net/sfu/sf-spreadtheword
_______________________________________________
Html-template-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/html-template-users
------------------------------------------------------------------------------
This SF.net email is sponsored by:
SourcForge Community
SourceForge wants to tell your story.
http://p.sf.net/sfu/sf-spreadtheword