Re: [Templates] Two Template Questions about Calling Objects

[prev] [thread] [next] [Date index for 2005/05/09]

From: merlyn (Randal L. Schwartz)
Subject: Re: [Templates] Two Template Questions about Calling Objects
Date: 23:26 on 09 May 2005
>>>>> "Peter" == Peter Kay <peterkayatwork@xxxxx.xxx> writes:

Peter> writeHTML () {
Peter>   # Write some output using ANOTHER template:
Peter>   # Object.tt2
Peter> }

In here, collect the result of ->process into a variable, and return it.
Then your outer template will simply include it along with its output.

        -- 
        Randal L. Schwartz - Stonehenge Consulting Services, Inc. - +1 503 777 0095
<merlyn@xxxxxxxxxx.xxx> <URL:http://www.stonehenge.com/merlyn/>
Perl/Unix/security consulting, Technical writing, Comedy, etc. etc.
See PerlTraining.Stonehenge.com for onsite and open-enrollment Perl training!

_______________________________________________
templates mailing list
templates@xxxxxxxxxxxxxxxx.xxx
http://lists.template-toolkit.org/mailman/listinfo/templates

Re: [Templates] Two Template Questions about Calling Objects
merlyn (Randal L. Schwartz) 23:26 on 09 May 2005

Generated at 07:01 on 17 May 2005 by mariachi v0.52