Sponsored Link
50$ ‼️‼️ Publishing REST Services with Grails 3 - Online Course
When: 3rd and 4th of Agust.
Time 6 hours, 3 hours/day.
Instructor Jeff Scott Brown; Grails co-founder
Price 50$
Content You will learn how to publish APIs, how to version APIs, customize response content, deal with security, interact with a database from a REST API...
Grails
Grails Code Coverage
Since April 11, 2017, Atlassian Clover is Open Source. This links to a Grails Guide which shows you how to integrate the Clover Gradle Plugin into a Grails 3 build to get Code Coverage reports.
My thanks to @bmuschko for his work in the Gradle plugin trying to make Grails and Clover as compatible as possible.
I discovered Clover in a Madrid Groovy User Group talk about Groovy Code Quality by @marioggar. Talk is in Spanish.
Speed up your Grails tests (Spring Security)
@YouriAckx shows you how to how to speed up your integration tests. How? Learn about Spring Security Core Plugin password configuration options.
Grails Goodness: Applying Layouts in Layouts
@mrhaki has a great example.
Let's see how this works with a small sample application. All pages have a header with a logo, search form and main menu. Each page also has a footer with some copyright information. The homepage has a body with five blocks of information, we have product list page with a one column body and finally a product details view with a two column body.
I love the Balsamiq mockups.
Applying Layouts in Layouts Revisited
A revisited example which improves the previous one by:
using the <g:applyLayout/> in the Groovy Server Pages in the layouts directory instead of in the views. So this way we can use the default method of applying layouts in our views (using for example the <meta/> tag) and keep all <g:applyLayout/>_ tags in the layout pages.
Grails Layouts & Sitemesh
This one is an old presentation by @ColinHarrington at the now defunct SpringOne 2GX Conference.
The layout conventions still apply, though. For example, learn how you can specify a layout in a controller.
Sitemesh layout depending on request parameter
@marsfooh shows two approaches to change Sitemesh layouts depending on a request parameter.
- Use an expression in the meta tag
- Define a Filter ( which will be an interceptor in Grails 3) .
Comment
When you think about Grails, you think about a framework standing on the shoulders of giants; Spring, Hibernate. One piece often overlooked is SiteMesh.
This issue contains several links to sharpen your SiteMesh knowledge.
Sergio del Amo