Re: [SMARTY] code templating

From: Date: Thu, 30 Oct 2003 08:38:51 +0000
Subject: Re: [SMARTY] code templating
References: 1  Groups: php.smarty.general 
Request: Send a blank email to php-smarty-general+get-10471@lists.php.net to get a copy of this message
Well, I haven't tested it, but you could try the following: $smarty->leftdelimiter="/*{*/"; $smarty->rightdelimiter="/*}*/"; $smarty->display("the_c_code_template.tpl"); $smarty->leftdelimiter="{"; $smarty->rightdelimiter="}"; I don't know if you can have delimiters that are more than 1 character long. Gabriel Am Donnerstag, 30.10.03 um 08:54 Uhr schrieb Matthias H. Risse:
hi smart people: i would like to use smarty with a template not being a markup lang (html/xml/wml) or so, but being code. of course code following c-syntax style consists of various blocksequences ( { and } brackets ). do you think its smart to do such a thing with smarty and if yes: is it possible to change smarty-tagstyle just for one page (on the fly). i dont really want to reedit all my other markup-templates which use {-brackets, too. yours matthias -- Smarty General Mailing List (http://smarty.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php With best regards
Gabriel Birke -- KONTOR4_Neue Medien Nelkenstrasse 3 31515 Wunstorf Germany Phone: +49 5031-955244 Fax: +49 5031-955231 mailto:birke@kontor4.de http://www.kontor4.de

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