standart plugin(s) suggestion

From: Date: Tue, 18 Feb 2003 08:00:23 +0000
Subject: standart plugin(s) suggestion
Groups: php.smarty.general 
Request: Send a blank email to php-smarty-general+get-7813@lists.php.net to get a copy of this message
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

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