Re: Strip <HTML>,<BODY> and similar from the beginning

From: Date: Mon, 12 Mar 2001 16:54:25 +0000
Subject: Re: Strip <HTML>,<BODY> and similar from the beginning
References: 1  Groups: php.smarty.general 
Request: Send a blank email to php-smarty-general+get-381@lists.php.net to get a copy of this message
I found ASP tags works well especially for the "Apply source formatting" command in DW. I think I tried comment style and didn't like it because of this. What I do simply: class Template extends Smarty { function Template() { $this->Smarty(); $this->template_dir = $GLOBALS['template_dir']; $this->compile_dir = $GLOBALS['compiled_dir']; $this->left_delimiter = '<%'; $this->right_delimiter = '%>'; // assign global variables that // will be used by all templates $this->assign('png_time', get_png_time()); } } Then I simply used Template instead of Smarty whereever needed. > -----Original Message----- > From: Victor [mailto:victorious81@hotmail.com] > Sent: Tuesday, 13 March 2001 2:41 AM > To: smarty@lists.ispi.net > Subject: [smarty] Re: Strip <HTML>,<BODY> and similar from the beginning > > Maybe I'll go for HTML comments anyway. Jim Hardlindong also > suggested ASP tags, but they will only cause me too much work. If > I'm using comments, I can just click on that comment block, and > the contents of the tag will pop up for me to edit it (in the > 'properties' dialog). ASP tags requires me first to click on the > tag and click on 'Edit' in the dialog. But comments are longer > (4/3 chars instead of 2/2. Are there any other good things with > ASP tags that I haven't thought of? >

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