Re: [PHP Template] Includes in templates

[email protected] (Andrei Zmievski) Wed, 29 Mar 2000 11:19:50 -0600
Newsgroups php.template
Message-ID <[email protected]>
On Tue, 28 Mar 2000, Peter Andreasen wrote:
>   <h2>Example news page<h2>
>   
>   {subtemplate niceheader.tpl ('headline' => 'Business news')}
> 
>   <hr>
> 
>   {subtemplate niceheader.tpl ('headline' => 'World news')}
> 
> where niceheader.tpl is a template which contains '{$headline}'
> somewhere.
> 
> That is, when in 'designer-mode' I want to use the template concept but
> without need to switch to 'coder-mode'...
> 
> >From the specs I would say something like the above is not possible with
> the proposed template system. You would have to either write out the
> HTML twice or actually write php-code to deal with the template
> niceheader.tpl.
> 
> Hmm. I am not sure this explanation is clear. Do you people see what I
> mean?

So, you want to include another template and pass values to it? Can I
ask why you would want to pass headlines to a subtemplate? Seems like
that should be coming from the PHP script.

-Andrei
* "UNIX, isn't that some archaic form of DOS?" - our job applicant *