#3: View classes in front of every template
- Contents
- Proposed by
- Reinout van Rees
- Proposal type
- Architecture
- Assigned to release
- State
- being-discussed
Motivation
There's lots of logic in the dtml templates. Part of the logic is in ArchetypesGenerator. Part of the logic is in the XMI parser. That is a mess. Putting a view class in front of every dtml template gives us a specific location to clean up the mess and where to put the template-related logic.
Assumptions
The cleaning up of the ArchetypesGenerator and the xmiparser isn't part of this proposal, though it enables it.
Proposal
- Add part of the zope3 mechanism (view classes, interfaces) to archgenxml.
- Create a mostly empty view class for every .dtml file.
- Take the logic out of the dtml file and put it into the view class.
Participants
Reinout van Rees