Daniel Fagerstrom wrote:
Leszek Gawron wrote:

Daniel Fagerstrom wrote:

macro(<name>,<param-name>,...,<param-name>)
-------------------------------------------

example:

<table do="macro(mytable,list,td-class)">
  <tr do="forEach($list)">
    <td class="${$class}">${item}</td>
  </tr>
</table>

We also need an evalBody as in JXTG. And maybe we should have a possibilty to give a name space to the macro name.


We also need:
- some script compiler directives i.e. for cache control (as in JXTG)
>
> Seem reasonable, sugest some mechanism.

<ignore do="processingInstruction( 'cache-key', $cacheKey )"/> if we want the directive to remove element at which it was declare. Or we could pass processing instructions at page root (or any element) if the element would stay in the template.

<tr do="macro(singleRowContent,context);omitTag(true)">
  <td>{context.elem1}</td>
  <td>{context.elem2}</td>
</tr>
Fine by me. The only concern is the performance here. Macro would have to be played, output recorded and after that omitTag invoked. I'd rather do it otherwise.


-- Leszek Gawron [EMAIL PROTECTED] Project Manager MobileBox sp. z o.o. +48 (61) 855 06 67 http://www.mobilebox.pl mobile: +48 (501) 720 812 fax: +48 (61) 853 29 65

Reply via email to