Re: [SMARTY] The "best" delimiters???
| From: | Travis Low | Date: | Wed, 19 Nov 2003 19:48:03 +0000 |
| Subject: | Re: [SMARTY] The "best" delimiters??? | ||
| References: | 1 | Groups: | php.smarty.general |
| Request: | Send a blank email to php-smarty-general+get-10554@lists.php.net to get a copy of this message | ||
I always use {{ and }} so I don't have to bother with the "literal" tag in CSS and Javascript. Plus, I find it easier on the eyes. However, this is not necessarily editor-friendly.
I also make the delimiters configurable from an .ini file. So if your developers are working on different projects, with no overlap, then you can let them pick the delimiters they like.
Even if the code does overlap, you could conceivably use a prefilter to convert a variety of diffent delimiters before the templates are compiled. Never tried this one, though.
cheers,
Travis
Gerard Samuel wrote:
First off, I personally, have no problems with the default delimiters in Smarty { } I primarily edit templates via the commandline, thus have no experience with "big time" editors that others out there may be using (Dreamweaver, etc)... Im getting ready to modify a bunch of templates, and I was wondering if there is a prefered delimiter that other "big time" editors agree with. For example is <! /> or <tpl: /> "better" or more acceptable than the vanilla { }?? Reason why Im asking is because Im preparing the templates to be edited by other developers, and Im not sure if their editors (or the developers themselves) would have any problems with Smarty's default delimiters. Hope I made sense, and thanks for your input...-- Travis Low <mailto:travis@dawnstar.com> <http://www.dawnstar.com>