Hi Sammy,

I had template code as follows:

<TMPL_INCLUDE NAME="<TMPL_VAR ESCAPE=HTML NAME="sectinc">">

It produces this output in my HTML:

<TMPL_INCLUDE NAME="login_form_table.tmpl">

As shown, for $tmpl->param( sectinc => login_form_table.tmpl), the inner
TMPL_VAR parsed, but the outer TMPL_INCLUDE did not.

I used the following code as a workaround, but I just thought I'd put it out
there for others, or in case you might think it worthwhile to allow the above
kind of 'embedding' in order to preclude the need to chain two objects, as I
have done below.  In any event, it might be worth including the below code as an
example in the docs.  Just a thought.

Thanks for a great module!

Bill Catlan

----
William Catlan, J.D.
Programmer Analyst - Internet Strategist
"Early Insights That Make A Difference"
v: 631.956.0780
f: 631.956.0026
e: [EMAIL PROTECTED]
----

sub login_form
{

  my $tmpl = HTML::Template->new( path => $TMPLPATH,
                                  filename => 'framework.tmpl'
                                );
  my $sect_tmpl = HTML::Template->new( path => $TMPLPATH,
                                       filename => 'login_form_table.tmpl'
                                     );

  $tmpl->param( sitename => $TMPLSITENAME,
                sitesect => 'Login',
                sectinc => $sect_tmpl->output()
              );


  return $tmpl->output();
}



---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to