Re: [SMARTY] Newbie question

From: Date: Sat, 11 Jan 2003 02:10:21 +0000
Subject: Re: [SMARTY] Newbie question
References: 1  Groups: php.smarty.general 
Request: Send a blank email to php-smarty-general+get-7126@lists.php.net to get a copy of this message
Hello Joel, You could try changing your smarty delimiters to something like <!--{ and }--> so things would look better for him in the editor (all the Smarty code would appear as comments). I think you could even do some tricky stuff with smarty comment to fake in some data for the editor to see as a sample: index.tpl (extra stuff ...) <Table> <!--{section name=loopme loop=$LoopRows}--> <tr><td><!--{$LoopRows[loopme]}--> <!--{* --> Script data output as many rows <!-- *}--> </td></tr> <!--{/section}--> </Table> where the --> inside the Smarty comment would trick the editor into thinking the HTML comment had ended, it would display "Script data output..." in the cell, then <!-- would trick it into thinking the end of the Smarty comment was itself another HTML comment. None of the above has been tried, just some ideas off the top of my head :) Has anyone tried using a WYSIWYG editor that understands ASP short tags and used <% and %> for delimiters? Not sure if that would be a useful solution or not. Welcome to Smarty. Regards, Jason ----- Original Message ----- From: "Joel Lord" <joellord@stratagem-mgnt.com> To: <smarty-general@lists.php.net> Sent: Friday, January 10, 2003 3:13 PM Subject: RE: [SMARTY] Newbie question > Actually, I need to avoid using code in my templates because our graphic > designer here only works with WYSIWYG editors and he is afraid of any > code (including HTML codes). *sigh* ;) >

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