Re: Get smarty to write standart code in every template ?

From: Date: Fri, 23 Mar 2001 17:23:11 +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-416@lists.php.net to get a copy of this message
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

« previous php.smarty.general (#416) next »