Skip to end of metadata
Go to start of metadata

Description

The Ratpack plugin enables the usage of an embedded Ratpack server.

Installation

The current version of griffon-ratpack-plugin is 0.1
To install just issue the following command

Usage

You can create as many Ratpack applications within the same Griffon application. Every Ratpack app will have it's own space but all share the same servlet context.
Dependency injection should work just fine with a Ratpack application; the same can be said regarding usage of the Artifact API.

Scripts

  • create-ratpack-app - creates a new Ratpack definition under griffon-app/ratpack .

Examples

Invoking the create-ratpack-app with "First" as the application name results in the following file being created

griffon-app/ratpack/sample/FirstRatpackApp.groovy

Once the application is running you can point a browser to http://localhost:5000/sample/first/

Configuration

At the moment the only setting that can be changed is the port used for the embedded Jetty server, which is 5000 by default. You can change this setting by specifying a flag in griffon-app/conf/Config.groovy

Page templates should in griffon-app/resources/ratpack/templates.
Static content should in griffon-app/resources/ratpack/public.

History

Version

Date

Notes

0.1

05-17-11

Initial release

  • No labels