Re: [SMARTY] standart plugin(s) suggestion

From: Date: Tue, 18 Feb 2003 14:28:45 +0000
Subject: Re: [SMARTY] standart plugin(s) suggestion
References: 1  Groups: php.smarty.general 
Request: Send a blank email to php-smarty-general+get-7822@lists.php.net to get a copy of this message
that sounds fine, but I think one plugin would suffice. {html_dtd type="transitional"} {html_dtd type="frameset"} ... On Tue, 2003-02-18 at 02:00, Peter Turcan wrote: > Dear Group. > > many of us want to have pages W3C compattible. For this is necessary > to have document definition in HTML/XHTML file. > I would like to ask if it will be possible to add plugins for this. > for example: > <?php > /*----------------------------------------------------------------------*/ > /* > * Smarty plugin > * ------------------------------------------------------------- > * Type: function > * Name: html_frameset > * Author: Peter Turcan <peter.turcan@centrum.sk> > * Purpose: print doc type for html4.01 frameset > * ------------------------------------------------------------- > * > */ > > function smarty_function_html_frameset($params, &$smarty) > { > echo "<!DOCTYPE HTML PUBLIC \"-//W3C//DTD HTML 4.01 Frameset//EN\" \n > \"http://www.w3.org/TR/html4/Frameset.dtd\">\n"; > } > /*----------------------------------------------------------------------*/ > ?> > > and so for html strict, transitional and for XHTML. > > and after that in HTML file you can use this plugin > {html_transitional} on the first line > > what do you think of that? I think it will be good to have this in > standard distribution of smarty. > > Peter -- Monte Ohrt <monte@ispi.net>

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