Jonas Ekstedt wrote:
Several directives
------------------

So, how do we handle multiple directives for one element? We could
handle the TAL example above like:

<p
do="let(x=/a/long/path/from/the/root;if(x);content(x/txt);attributes(class=x/class)">
  Ex Text
</p>


Isn't there a risk that attribute templates become unreadable?
That is quite true: the attribute value could become lengthy.

I feel a little bit that the attribute syntax should be a 1:1 alternative for simpler cases to tag syntax. This way the developer is the one to choose what he pleases.

The tag syntax is: simpler to teach, simpler to understand (it is similar to a programming language structure). Still the syntax Daniel proposes is kind of "sexy" and I would surely like to try it out.

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