tag:blogger.com,1999:blog-851248753794988894.post7896452371410689496..comments2024-03-02T09:36:31.011+01:00Comments on Development Area Spotted: Grails Taglib : The template composition patternAnonymoushttp://www.blogger.com/profile/01621538597351562486noreply@blogger.comBlogger3125tag:blogger.com,1999:blog-851248753794988894.post-35470794647999967112011-02-24T08:12:11.654+01:002011-02-24T08:12:11.654+01:00Useful advice :)Useful advice :)Kendoohttp://www.americansunlightsolar.comnoreply@blogger.comtag:blogger.com,1999:blog-851248753794988894.post-38248822130027656602011-02-22T12:19:17.347+01:002011-02-22T12:19:17.347+01:00Thanks for your advice :)Thanks for your advice :)Anonymoushttps://www.blogger.com/profile/01621538597351562486noreply@blogger.comtag:blogger.com,1999:blog-851248753794988894.post-35720027821496761952011-02-22T10:12:42.644+01:002011-02-22T10:12:42.644+01:00You can annotate defines map in Composition class ...You can annotate defines map in Composition class with @Delegate and you should be able to access it directly from composition:<br /><br />out << g.render(template: attrs.template, model: composition)<br /><br />attrs.composition.put(attrs.name, body)<br /><br />or<br /><br />attrs.composition[attrs.name] = body<br /><br />anyway this could lead to a little delay in executions, I didn't try itManuelhttps://www.blogger.com/profile/00582668704294284167noreply@blogger.com