Skip to main content
9 events
when toggle format what by license comment
Dec 1, 2015 at 11:40 comment added Opal @CMFR, so please provide an example that shows the real problem.
Dec 1, 2015 at 10:50 comment added CMFR @Opal sure in this example forgetting the 'builder' is obvious. In my real-world case the first reference to a html element was deep inside if..else constructions. thanks for builder.with I'll look into it as I never used it.
Dec 1, 2015 at 10:40 comment added Opal @CMFR How would you like it to work? You need to invoke a in some context. So builder.a will be ok, or builder.with { a// some code}.
Dec 1, 2015 at 9:53 comment added CMFR @Opal my bad, I got it right in the post but wrong in my code (a builder.td was missing) so I edited the post to reflect that. To melix thanks for the suggestion. I saw some bits about using a template around the web but it seems a bit too advanced for me right now
Dec 1, 2015 at 9:51 history edited CMFR CC BY-SA 3.0
corrected wrong statement
Dec 1, 2015 at 8:18 comment added melix You might also be interested in the MarkupTemplateEngine. It would allow you to define a base template class that contains your utility methods, while being significantly faster.
Dec 1, 2015 at 8:11 comment added Opal With groovy 2.4.5 it returns correct result.
Dec 1, 2015 at 7:51 review First posts
Dec 1, 2015 at 7:53
Dec 1, 2015 at 7:49 history asked CMFR CC BY-SA 3.0