Re: changes to template variable syntax
Steve Hoelzer <[email protected]>
| Newsgroups | gmane.comp.web.pyblosxom.devel |
|---|---|
| Message-ID | <[email protected]> |
On Sep 6, 2007, at 7:45 PM, Will Guaraldi wrote: > On 9/6/07, Asheesh Laroia <[email protected]> wrote: >> On Thu, 6 Sep 2007, Will Guaraldi wrote: >>> Now we handle all that as well as: >>> >>> $(foo) >>> $(foo::bar) >> >> Isn't ${foo} more standard? That's what Zope Page Templates and >> bash use, >> iirc. >> >> -- Asheesh. > > I've seen both syntaxes and I'm not sure one is more standard over the > other. Python uses %(...) for string formatting. > > Which one do people prefer? Parentheses or curly braces? IMO, parens are easier to type. But I don't really care either. Steve ------------------------------------------------------------------------- This SF.net email is sponsored by: Splunk Inc. Still grepping through log files to find problems? Stop. Now Search log events and configuration files using AJAX and a browser. Download your FREE copy of Splunk now >> http://get.splunk.com/