[Zope-Moz] Templates anyone?

Rik Hoekstra rik.hoekstra@inghist.nl
Mon, 28 Feb 2000 16:48:37 +0100


[snip discussion about new paradigm]

I didn't understand the the component tag then.

I did mean my tag to be used for only one kind of object - which wouldn't be
just_another_zope_object but a special one. You wouldn't include the object
with a dtml-var or something. Like acl_users. (Although now I'm thinking if
something otherwise would be possible).
But my tag can achive a lot more than what a component tag can. It isn't the
syntax I want to think about yet but a new paradigm.

I also now sort of see what your point is. I was thinking the component tag
is
meant to solve a problem it is not.

And so now I don't want to position my idea as 'a better dtml-component' but
as
something entirely new. Something (I feel) would be a great addition to core
Zope and would benifit ZopeStudio too. I also won't call it a template but a
'pattern' to avoid confusion.

I'll make a post to zope-dev, I think.

Any comments on a new 'reusable pattern' paradigm?


I'm not sure I understand your differences between components or something
'entirely new'. Sorry if I'm only intruding upon the discussion, but...
I think Martijn Faassen tried to implement something of the sort with his
ZFormulator (see at his member page)
I once thought of adding something similar by using the document template
'competitor' in python land, which is HTMLgen (used to be available from the
python starship (http://starship.python.net/library - it still is I checked)
and even did a test from an external method. That worked quite well, and
easy. HTMLgen is an object oriented library for producing HTML pages. A page
is an object, and so is every tag on it. I never tried to integrate dtml and
HTMLgen, though, but it coould be a starting point.

SO much for inserting new elements in templates, but what are your thoughts
about maintaining/editing such object based pages? Should they be
rendered/partially rendered. If they're rendered, how do you provide a
general mechanism that keeps them from being edited? How does the editor
know where the object boundaries are in a template? How does Zope know which
parts to update and which not?

Rik