Re: Get smarty to write standart code in every template ?
| From: | taliku at balcab dot ch | Date: | Fri, 23 Mar 2001 17:57:48 +0000 |
| Subject: | Re: Get smarty to write standart code in every template ? | ||
| References: | 1 | Groups: | php.smarty.general |
| Request: | Send a blank email to php-smarty-general+get-417@lists.php.net to get a copy of this message | ||
I just want to write on each page that smarty generates (dynamic, cache,
etc...)
something like my example. And i want this as a comment on the beginning of
the page.
thx in advance
----- Original Message -----
From: "Andrei Zmievski" <andrei@ispi.net>
To: "Monte Ohrt" <monte@ispi.net>
Cc: <taliku@balcab.ch>; "Smaty ML" <smarty@lists.ispi.net>
Sent: Friday, March 23, 2001 6:23 PM
Subject: [smarty] Re: Get smarty to write standart code in every template ?
> On Fri, 23 Mar 2001, Monte Ohrt wrote:
> > Yes, this can be done. Interesting idea, we'd know that the site was
> > built with Smarty, and know when the page was last generated, and
> > whether cached or not. We would have to be careful that only mime types
> > of text/html are affected, we don't want this showing up in other
> > formats of output.
> >
> > How configurable would this need to be?
> >
> > Just a simple:
> > $smarty_html_headers = true;
> >
> > or more configurable:
> > $smarty_headers = array( "text/html" => "<!-- Smarty %v %d (%c)
> > -->" );
> >
> > %v = version
> > %d = date
> > %c = cache flag
> >
> > Other thoughts?
>
> It depends on whether you want to just write the Smarty info at the top
> of each file or an arbitrary text (similar to PHP's auto_prepend
> setting).
>
> -Andrei
>
> What's hard, in hacking as in fiction,
> is not the writing, it's deciding what to write.
> -- Neal Stephenson
>
> ---
> You are currently subscribed to smarty as: taliku@balcab.ch
> To unsubscribe send a blank email to $subst('Email.Unsub')
> Visit Smarty's homepage at
> http://www.phpinsider.com/php/code/Smarty/