Conal Tuohy wrote:
Leszek Gawron wrote:


I would like to add one feature to JXTG that would allow not to promote hacks like [1]. Example:

<jx:macro name="fooBar">
  <some>content</some>
</jx:macro>

you can only invoke it by <fooBar/>

If I were able to do <jx:invoke macro="fooBar"/> I would be able to pass macro name as a parameter to other macro which allows quite powerful data injection technique:


Yes! Functional programming! +100

Though I would suggest <jx:call-macro name="fooBar"/> which would make it clear that the attribute is the NAME of the macro to be invoked, rather than the macro itself.
That's good. If noone objects I will start tomorrow and hopefully commit tomorrow.

--
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