logo       

Re: MarkupBuilder combining attributes and content: msg#00149

lang.groovy.user

Subject: Re: MarkupBuilder combining attributes and content


You could probably fake out what you want with:

a(href:'http://groovy.codehaus.org') {
span("Groovy");
}

The span tag is harmless (to everything but the readability of your source
code!).

Marc Hedlund
e: marc at precipice dot org

On Mon, 22 Nov 2004, Ken Pelletier wrote:

> Thanks, I suspected that, given the look of the page I was getting back.
>
> That page has this example:
>
> a(href:'http://groovy.codehaus.org') ["Groovy"]
>
> Suggesting that it would generate the markup:
>
> <a href='http://groovy.codehaus.org'>Groovy</a>
>
> That syntax doesn't immediately make sense to me, but it does fail
> using a MarkupBuilder on 1.0-beta.7
>
> No such property: "Groovy" for class java.lang.String
>
>
> On Nov 22, 2004, at 1:03 AM, Darren Davison wrote:
>
> > On Monday 22 November 2004 06:51, Ken Pelletier wrote:
> >
> >> I believe there was an example on the wiki here
> >> http://wiki.codehaus.org/groovy/TreeBasedSyntax but that page seems
> >> to
> >> have disappeared today - at least it's been inaccessible to me since
> >> this afternoon.
> >
> > the wiki page got 'hacked' by a friendly chinese bot. I reverted it
> > to the
> > previous version. Likely that there's other pages too.. :(
> >
> > --
> > Darren Davison
> > Public Key: #DD356B0D
>



<Prev in Thread] Current Thread [Next in Thread>
Google Custom Search

News | FAQ | advertise