thoughts on extensions to smarty

From: Date: Fri, 21 Feb 2003 19:27:15 +0000
Subject: thoughts on extensions to smarty
Groups: php.smarty.general 
Request: Send a blank email to php-smarty-general+get-8088@lists.php.net to get a copy of this message
I remember some discussions about using smarty to do emails. The general case of a template engine seems to be: (User input + Database)->(business_logic)->(template_engine + template + format ) = document.format so in the case of smarty, it would be nice if the last line in a file using a smarty object could be like this: $smarty->display( file.tpl, 'HTML', array() ); sends html back to the user. $smarty->display( file.tpl, 'EMAIL', array( email headers ) ); sends email back to the user. $smarty->display( file.tpl, 'HTML_IN_EMAIL' array( 'EMAIL' => array( email headers )) ); sends html IN email back to the user. $smarty->display( file.tpl, 'PDF', array( ) ); sends PDF file back to the user. etc,etc,etc with .doc, .ps, .csv, Is there any thought to this being done ever?

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