package com.stubbornjava.examples.undertow.handlebars;

import com.stubbornjava.common.undertow.SimpleServer;

import io.undertow.server.HttpHandler;
import io.undertow.server.RoutingHandler;

public class HandlebarsServer {

    // {{start:routes}}
    private static final HttpHandler ROUTES = new RoutingHandler()
        .get("/messageRawTemplate", HandlebarsHandlers::messageRawTemplate)
        .get("/messagesRawTemplate", HandlebarsHandlers::messagesRawTemplate)
        .get("/messagesTemplate", HandlebarsHandlers::messagesTemplate)
    ;
    // {{end:routes}}

    // {{start:server}}
    public static void main(String[] args) {
        SimpleServer server = SimpleServer.simpleServer(ROUTES);
        server.start();
    }
    // {{end:server}}
}

@@ -234,22 +234,22 @@
 %7B%7Bstart:
-routes
+server
 %7D%7D%0A    p
@@ -546,54 +546,8 @@
   ;%0A
-    // %7B%7Bend:routes%7D%7D%0A%0A    // %7B%7Bstart:server%7D%7D
 %0A   

Move annotations