Re: Get smarty to write standart code in every template ?
| From: | Monte Ohrt | Date: | Fri, 23 Mar 2001 17:14:25 +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-415@lists.php.net to get a copy of this message | ||
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?
taliku@balcab.ch wrote:
>
> Hello Everyone!
>
> Is it possible to edit a smarty-function (fetch?) to get smarty
> write a standart text on the beginning of every output
> like Vignette V/5 it does (http://www.vignette.com):
>
> Example: In every Site generated by Vignette V/5 (also known as StoryServer)
> on top is written the System and the time of generation:
>
> <!-- Vignette V/5 Fri Mar 23 16:59:47 2001 -->
>
> Is it possible? Will smarty then work slower?
> I don't want to write this on top of every .php file...
>
> thanks in advance
>
> taliku
> Sorry for my bad english :) --> Switzerland :)
>
> ---
> You are currently subscribed to smarty as: monte@ispi.net
> To unsubscribe send a blank email to $subst('Email.Unsub')
> Visit Smarty's homepage at
> http://www.phpinsider.com/php/code/Smarty/
--
Monte Ohrt <monte@ispi.net>
http://www.ispi.net/