Dennis Daupert wrote:
>        [% headers = BLOCK %]
>           ...etc...
>        [% END %]
>  
>        [% INCLUDE html/header
>             title = 'HDE Team Portal'
>             bgcol = '#ffffff'
>        %]

Clayton L. Scott wrote:
> First you declare a block named "headers" with an _s_.

Actually he's defining a variable named "headers".  It's just that he's
using a BLOCK...END to define the scope of it.

> Then you include "html/header" ( no _s_ ). Is this supposed to reference 
> the first block? Are these fragments in the same file? Different files? 

I suspect that html/header does something like this:

  <html>
   <head>
    <title>[% title %]</title>
    [% headers %]
   </head>
   <body bgcolor="[% bgcol %]"/>

Does that make it more obvious?  

A


_______________________________________________
templates mailing list
[EMAIL PROTECTED]
http://lists.template-toolkit.org/mailman/listinfo/templates

Reply via email to