Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.
Comment: Migration of unmigrated content due to installation of a new plugin

...

  • _I'm for
    No Format
     {expr} 
    if it's not a problem to implement, with an escape mechanism, of course, for when you actually need to write
    No Format
     {expr} 

    Wiki Markup
     verbatim in your document. -- \[BertrandDelacretaz\]_

  • Wiki Markup
    _No problem to implement at all, it is exactly what is used in attributes in XSLT so the escaping mechanism from XSLT can be used. I happen to have an implementation of it that I used in another project that we can reuse. -- \[DanielFagerstrom\]_
    \\

IIUC TAL doesn't use embeded expressions but instead replace element and attribute content with replace directives (in attributes). It might make it even more Dreamweaver friendly as you can look at example content instead of expressions in your design window. But it makes template writing much harder IMO. We could have such replacement directives if people want it but, I would prefer having embeded expresions as well.

...

No Format
<div do="if(count(cart/item) == 0)">
   Your cart is empty
<div>
  • Wiki Markup
    _I'd much prefer <div tl:if="count(cart/item) == 0"> and <div tl:unless...> for the opposite case, as Vadim suggests on cocoon-dev, and would to the same for other constructs: tl:whatever syntax instead of tl:do="whatever". It's clearer and probably easier to implement -- \[BertrandDelacretaz\]_

  • Wiki Markup
    _Agree with the use of if and unless, but not about the syntax. The syntax parsing might be easier but the need precedence order of attributes complicates and above all make it harder to understand what happens, (see [http://marc.theaimsgroup.com/?l=xml-cocoon-dev&m=110243773223364&w=2] for motivation). -- \[DanielFagerstrom\]_
    \\

forEach(<sequence>)

example:

...