|
Re: MarkupBuilder combining attributes and content: msg#00150lang.groovy.user
Oops, sorry, my last response was meant for this message. Marc Hedlund e: marc at precipice dot org On Mon, 22 Nov 2004, Ken Pelletier wrote: > How can I use MarkupBuilder to generate html elements that have both > attributes and content? > > I can't seem to locate any examples anywhere, but it's such an > essential case I'm sure it's supported. > > Eg: <td class="foo">some content here</td> > > mb = new MarkupBuilder() > mb.td(class:"foo") // yields <td class='foo' /> > mb.td("some content here") // yields <td>some content here</td> > mb.td(class:"foo", "some content here") // yields <td class='foo' /> > > 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. > >
|
|
| <Prev in Thread] | Current Thread | [Next in Thread> |
|---|---|---|
| Previous by Date: | Re: MarkupBuilder combining attributes and content, Marc Hedlund |
|---|---|
| Next by Date: | Re: Groovy and (X)Emacs, Marc Hedlund |
| Previous by Thread: | Re: MarkupBuilder combining attributes and content, Scott Stirling |
| Next by Thread: | Groovy and (X)Emacs, Russel Winder |
| Indexes: | [Date] [Thread] [Top] [All Lists] |
| News | FAQ | advertise |