package uk.me.csquared.ratpacktest;

/**
 * Created by colin on 30/05/2016.
 */
import ratpack.server.RatpackServer;

public class Main {
    public static void main(String[] args) throws Exception{
        RatpackServer.start(server -> server
                .handlers(chain -> chain
                        .get(ctx -> ctx.render("Hello Telia!"))
                        .get(":name", ctx -> ctx.render("Hello " +
                                ctx.getPathTokens().get("name!") + "!"))
                )
        );

    }
}



@@ -336,13 +336,13 @@
 llo 
-Telia
+World
 !%22))

change Hello Telia to Hello World for demo