> There's no need for new syntax, just create a separate HTML::Template
> object for the reusable include and populate it separately.  You can do
> this in a separate module for added security.  Then, when you're ready to
> fill in the include do:
>
>   $main_template->param(inner_template => $inner_template->output());
>
> And in your main templates, use
>
>   <tmpl_var inner_template>
>
> instead of a <tmpl_include>.
>
> I've used this strategy to good effect a number of times.
>

Ditto.  Additional advanced interconnection between templates can be
accomplished via "associate".  Our development group has fastidiously
avoided the use of "include".  We have been able to develop our entire
solution without a single include using standard HTML::Template, "associate"
and the method Sam points out.

-- Cory Trese



Cory Trese
Publications Programmer

O'NEIL & ASSOCIATES, INC.
495 Byers Rd.
Miamisburg, Ohio 45342-3662
Phone: (937) 865-0800 ext. 3038
Fax: (937) 865-5858
E-mail: [EMAIL PROTECTED]



-------------------------------------------------------
This sf.net email is sponsored by: viaVerio will pay you up to
$1,000 for every account that you consolidate with us.
http://ad.doubleclick.net/clk;4749864;7604308;v?
http://www.viaverio.com/consolidator/osdn.cfm
_______________________________________________
Html-template-users mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/html-template-users

Reply via email to