RE: [SMARTY] The "best" delimiters???

From: Date: Wed, 03 Dec 2003 18:01:19 +0000
Subject: RE: [SMARTY] The "best" delimiters???
References: 1  Groups: php.smarty.general 
Request: Send a blank email to php-smarty-general+get-10624@lists.php.net to get a copy of this message
My choice is very similar, <!--- ---> It renders as a comment in Dreamweaver and probably would do the same in other editors. I don't use <!--{ }--> it's two extra keys to get the character printed (shift+[). It's quicker for me to press the dash key three times. :P) Regards, Jonathan Chum Systems Developer ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ A I S M e d i a , I n c . "We Build eBusinesses" 115 Perimeter Center Terrace Suite 540 Atlanta, GA 30346 Tel: 800.784.0919, Ext 502 / Fax: 770.350.9409 http://www.aismedia.com / jchum@aismedia.com ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -----Original Message----- From: Eduardo [mailto:jemf@softhome.net] Sent: Thursday, November 20, 2003 1:47 AM To: smarty-general@lists.php.net Subject: RE: [SMARTY] The "best" delimiters??? I use: <!--{ }--> and it works good and renders without problems in the wysiwyg editors -----Original Message----- From: Marshall Sorenson [mailto:marshall@byterage.net] Sent: Thursday, November 20, 2003 12:26 AM To: smarty-general@lists.php.net Subject: RE: [SMARTY] The "best" delimiters??? Gerard, I have brainstormed several times trying to come up with an alternate delimter to use for Smarty that will blend in better with the HTML, while still staying recognizable. As of yet, I have not been able to convince myself to switch. It would be cool to create an XML "style" (probably not "compliant") tag, along with a simple DTD for it, but I always shy away from them when I start to think of all the extra typing, eg. <smarty if $blah == "foo">abc 123<smarty /if> Here are some others I have come up with in the past. Haven't tested any of them, but they should work? <: > <# > <! > <| > (pipe it to smarty? hardy har) << >> (looks kinda cool huh?) < > (back ticks, very clean I think) Anybody come up with an elegant solution that works well? If nothing else I am getting bored with the standard {}. Would be fun to try something new. -Marshall ____________________________________ "If at first the idea is not absurd, then there is no hope for it." - Albert Einstein > -----Original Message----- > From: Gerard Samuel [mailto:php-smarty@trini0.org] > Sent: Wednesday, November 19, 2003 2:39 PM > To: smarty-general@lists.php.net > Subject: [SMARTY] The "best" delimiters??? > > > 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... > > -- > Smarty General Mailing List (http://smarty.php.net/) > To unsubscribe, visit: http://www.php.net/unsub.php > > -- Smarty General Mailing List (http://smarty.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php -- Smarty General Mailing List (http://smarty.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

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