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

From: Date: Thu, 20 Nov 2003 06:25:35 +0000
Subject: RE: [SMARTY] The "best" delimiters???
Groups: php.smarty.general 
Request: Send a blank email to php-smarty-general+get-10556@lists.php.net to get a copy of this message
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 > >

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