Layout and Handlers

Learn about Ratpack layout and handlers.

We'll cover the following...

Ratpack layout

  • build.gradle: The Gradle build file
  • src - main/java: Where you put general Java classes.
    • main/groovy: Where you put general Groovy classes.
    • main/resources: Where you put static resources, such as Handlebars templates.
    • test/java: Where to put your Java based tests.
    • test/groovy: Where to put your spock Specs and other groovy tests.
    • ratpack: Contains
    • ratpack.properties.
    • ratpack/public: Any public files like HTML, JavaScript, and CSS
    • ratpack/templates: Holds your
...