You are not logged in Log in Join
You are here: Home » Members » 4AM Productions (Evan Simpson) » DTMLWiki » ZRenderer » wikipage_view

Log in
Name

Password

 
 
FrontPage » EvolutionaryProposals »

ZRenderer

ZRenderer Proposal

Poster Children:

    <img src="images/larch" z-render=absolute_image>
    <frame name="main" src="browse_main" z-render=frame_pass_query>
    <input name="is_larch" type="checkbox" z-render=check_var var="tree">

Goals

  • Allow HTML to be marked up in such a way that it behaves correctly in both a Zope context and in a non-Zope aware HTML editor/composer.
  • Support creation of "styles" or "behaviors", implemented in Zope, which can be applied to HTML tags in order to control their rendering on the server.

Proposed Changes

Add to DTML Documents and Methods a processing step which recognizes SGML tags with a z-render attribute. Parse and replace these tags with ZRender objects.

Result

We could develop libraries of methods which transform or replace tags in any way we like. Specifically, it would be simple to develop methods like ZRenderAbsImage, ZRenderFrameQueryString, or ZRenderCheckbox. More complex methods like ZRenderQuickTable? could be essentially user-defined tags.