Yes, I already learned that
(actullay I learned from hobo-at-work,
I read every chapter of that book).
besides the confuse of what I refer to,
I also found this inconsistent:
<def tag="s1">  // a resemble to page
<html >
    <view/>
    <div with="&@this.title1">
    <view/>
        </div>
        <div with="&@this.title1" param="sss">
    <view/>
        </div>
<head with="&@this.title1" param>
      <view/>
....
<s1>
  <scripts:>scripts</scripts:>
</s1>
which produces:(@this is just some simple object which contains title1 attr)
<div with="&@this.title1"> (Not Available) </div> <div class="sss" with="337
"> (Not Available) </div> <head with="337">
See? the first div and the second div, when you add a param declaration,
the result is quite different(you can try different combination yourself to
see what I mean).
This is quite inconsistent. (Besides I'm trying to find how to invoke it
with : syntax,
especially when the tag have other contents:
<div:this.title1> or <div param :this.title1> <div a="a" param :this.title1>

On Fri, Jul 16, 2010 at 11:12 PM, Owen <[email protected]> wrote:

> Take a look at:
>
> http://cookbook.hobocentral.net/manual/dryml-guide
> http://cookbook.hobocentral.net/api_taglibs
>
> and
>
> http://hobocentral.net/books
>
> and
>
> http://cookbook.hobocentral.net
>
>
> -Owen
>
>
> On Jul 16, 9:49 am, femto Zheng <[email protected]> wrote:
> > Hello all,
> > For this:
> > <def tag="s1">
> > <div param="content" class="a1" merge-attrs>
> > </div>
> > </def>
> > <s1 class="s1">
> > <content: class="s2">very
> > </content:>
> > </s1>
> > It produces
> > <div class="a1 s1 content s2">very
> > </div>
> > For this:
> >
> > <def tag="s2">> <div merge-attrs param="content" class="a1">
> > > </div>
> > > </def>
> > > <def tag="s1">
> > > <s2 param class="s12">
> > > not
> > > </s2>
> > > </def>
> > > <s1 class="s1">
> > > <s2: class="s2">very
> > > </s2:>
> > > </s1>
> >
> > this produces:
> > <div class="a1 s12 s2 content">
> > </div>
> >
> > (not to mention you can even param a param content)
> > like
> > <s1>
> >   <content: param>
> >   blahblahblah
> >   </content:>
> > </s1>
> > what's the rule of evaluating the merge-attrs and param replacement?
> > I'm quite confused. (I have asked, but not quite useful result).
> > Is there any spec for dryml?, what's the rule of evaluation order?
>
> --
> You received this message because you are subscribed to the Google Groups
> "Hobo Users" group.
> To post to this group, send email to [email protected].
> To unsubscribe from this group, send email to
> [email protected]<hobousers%[email protected]>
> .
> For more options, visit this group at
> http://groups.google.com/group/hobousers?hl=en.
>
>


-- 
http://hi.baidu.com/femto

-- 
You received this message because you are subscribed to the Google Groups "Hobo 
Users" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/hobousers?hl=en.

Reply via email to