// Path: spark-template-rocker/src/main/java/spark/template/rocker/RockerEngine.java
// public class RockerEngine extends TemplateEngine {
// 
//     /**
//      * {@inheritDoc}
//      */
//     @Override
//     public String render(ModelAndView modelAndView) {
// 	return Rocker.template(modelAndView.getViewName())
// 	    .bind((Map<String,Object>)modelAndView.getModel())
// 	    .render()
// 	    .toString();
//     }
// 
// }


import java.util.HashMap;
import java.util.Map;
import spark.ModelAndView;
import spark.template.rocker.RockerEngine;
import static spark.Spark.get;
package spark.template.rocker.example;



public class RockerEngineExample {

    public static void main(String args[]) {

        get("/hello", (request, response) -> {
            Map<String, Object> model = new HashMap<>();
            model.put("message", "Hello Rocker!");
            return new ModelAndView(model, "views/hello.rocker.html");
// Path: spark-template-rocker/src/main/java/spark/template/rocker/RockerEngine.java
// public class RockerEngine extends TemplateEngine {
// 
//     /**
//      * {@inheritDoc}
//      */
//     @Override
//     public String render(ModelAndView modelAndView) {
// 	return Rocker.template(modelAndView.getViewName())
// 	    .bind((Map<String,Object>)modelAndView.getModel())
// 	    .render()
// 	    .toString();
//     }
// 
// }


// Path: spark-template-rocker/src/test/java/spark/template/rocker/example/RockerEngineExample.java
import java.util.HashMap;
import java.util.Map;
import spark.ModelAndView;
import spark.template.rocker.RockerEngine;
import static spark.Spark.get;

package spark.template.rocker.example;



public class RockerEngineExample {

    public static void main(String args[]) {

        get("/hello", (request, response) -> {
            Map<String, Object> model = new HashMap<>();
            model.put("message", "Hello Rocker!");
            return new ModelAndView(model, "views/hello.rocker.html");
        }, new RockerEngine());