Thomas Klausner <[EMAIL PROTECTED]> writes:

> Yes, this is a RFC for Yet Another Templating System. I know that
> there are a lot of those around. But this own might be
> different/interesting (at least I think/hope so...)
> (...)

One note: while talking about templating systems for generating HTML,
it can be inspiring to take a look at the Zope Page Templates (yes, I
know, this is the python/zope world, not perl...). They found the nice
idea of injecting loops/ifs etc into HTML in the way which does not
spoil HTML markup. 

Their introduction is on
  http://www.zope.org/Documentation/Articles/ZPT1
and reference is in 
  http://www.zope.org/Documentation/Books/ZopeBook/current/AppendixC.stx

Here are some examples (copied from the introduction)

   <title tal:content="here/title">Page Title</title>

   The URL is <span tal:replace="request/URL">URL</span>.

   <table border="1" width="100%">
        <tr>
          <th>#</th><th>Id</th><th>Meta-Type</th><th>Title</th>
        </tr>
        <tr tal:repeat="item container/objectValues">
          <td tal:content="repeat/item/number">#</td>
          <td tal:content="item/id">Id</td>
          <td tal:content="item/meta_type">Meta-Type</td>
          <td tal:content="item/title">Title</td>
        </tr>
   </table>


-- 
( Marcin Kasperski   | Osoba jest omegalizacją ewolucji uniwersalnej na      )
( http://www.mk.w.pl | określonym odcinku etapowym (Teilhard de Chardin)     )
(----------------------------------------------------------------------------)
( Wygeneruj dokumentację: http://www.mk.w.pl/narzedzia/narzedzia_gendoc      )

Reply via email to