|
Re: MarkupBuilder combining attributes and content: msg#00142lang.groovy.user
Ken Pelletier wrote: How can I use MarkupBuilder to generate html elements that have both attributes and content? Though that's a very common use case, unfortunately, MarkupBuilder is quite limited and cannot generate such simple tags. You'll have to use StreamingMarkupBuilder which you can build from Groovy sources (since in the last build, due to a build problem, this class hasn't been included in the distribution). To know how it works, you should have a look at DocGenerator.groovy in the source distribution, there are some good examples of its usage. -- Guillaume Laforge http://glaforge.free.fr/weblog
|
|
| <Prev in Thread] | Current Thread | [Next in Thread> |
|---|---|---|
| Previous by Date: | Test, Cleverton Hentz |
|---|---|
| Next by Date: | Re: Expected or unexpected, Guillaume Laforge |
| Previous by Thread: | Re: MarkupBuilder combining attributes and content, Marc Hedlund |
| Next by Thread: | Re: MarkupBuilder combining attributes and content, Ken Pelletier |
| Indexes: | [Date] [Thread] [Top] [All Lists] |
| News | FAQ | advertise |