Gossamer Forum
Home : Products : Gossamer Links : Discussions :

How can I do like this tag?

Quote Reply
How can I do like this tag?
Hi all,


I want to add a tag like this:

<%include <%form%> %> (form is a variable in my script that I will load in the template) but the template does not work.

Please advice me,

Thank in advance,

Cantona
Quote Reply
Re: [cantona] How can I do like this tag? In reply to
Hi,

You can't do this, instead you can use a global:

sub {
my $tags = shift;
my $form = $tags->{form};
return GT::Template->parse($form, $tags);
}

and it will parse the file in <%form%> and return it.

Cheers,

Alex
--
Gossamer Threads Inc.