[Subversion] / PEAK / src / peak / web / templates.py |
No default branch
Bookmark a link to HEAD:
(view)
(download)
(as text)
The templates have landed! We can parse and render templates, and use them as web methods on locations. There's even a (yes, just one) unit test. Big TODO lists both in the package and its test suite, but at least it's working. Made minor adjustments to publishing algorithms so that locations know their parent locations, and methods know the location that they were found in. Bumped package version to 0.5a3, since we've been in the alpha 3 cycle for a while now.
Drafted rough equivalents to "var" and "in". Refactored model and publishing traverals to use a name class (LocationPath) that knows how to do traversal. Moved Zope request subclasses to a separate module, so that you don't have to have Zope installed just to use templates (important for testing!). Made 'peak.naming' name classes (compound/composite and any derivative thereof) support 'adapt(stringOrUnicode,nameClass)' by parsing.
Initial draft implementations of basic template node/element types. We should be able to create some tests around these and get them debugged, even before we create a parser.
cvs-admin@eby-sarna.com Powered by ViewCVS 1.0-dev |
ViewCVS and CVS Help |