Re: changes to template variable syntax
Asheesh Laroia <[email protected]>
| Newsgroups | gmane.comp.web.pyblosxom.devel |
|---|---|
| Message-ID | <[email protected]> |
On Thu, 6 Sep 2007, Will Guaraldi wrote:
> I just checked into trunk (i.e. this is for PyBlosxom 2.0) code
> re-write to Replacer.replace and VAR_REGEXP in the tools module.
>
> I also checked in unit tests for what we had before as well as the new
> functionality.
>
> Previously we could handle variables like this:
>
> $foo
> $foo::bar
> $foo::bar()
> $foo::bar(1, 2, 3)
> $foo-bar
> $foo_bar
> ...
>
> 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.
--
To be is to program.
-------------------------------------------------------------------------
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/