SEVERE: Unexpected exception in routeFreeMarker template error:For "#list" list source: Expected a sequence or collection, but this has evaluated to an extended_hash+string (io.vertx.core.json.JsonArray wrapped into f.e.b.StringModel):==> context.things [in template "templates/things.ftl" at line 9, column 8]
<!doctype html>
<html>
<head>
<meta charset=utf-8>
<title>Things</title>
</head>
<body>
<ul>
<#list context.things as thing>
<li>$thing</li>
</#list>
</ul>
</body>
</html>
class SimpleVerticle extends GroovyVerticle {@Overridevoid start(Future<Void> fut) {def router = Router.router(vertx)def templateEngine = FreeMarkerTemplateEngine.create()router.get("/things").handler({ routingContext ->routingContext.put('things', ['thing 1', 'thing 2'])templateEngine.render(routingContext, "templates/things.ftl", { res ->if (res.succeeded()) {routingContext.response().end(res.result())} else {routingContext.fail(res.cause())}})})// Serverfinal HttpServer server = vertx.createHttpServer([ssl : true,keyStoreOptions: [path : 'keystore.jks',password: '']])server.requestHandler(router.&accept).listen(8443, { result ->if (result.succeeded()) {fut.complete()} else {fut.fail(result.cause())}})}}
<#list context.things as thing>
<#list context.things.getList() as thing>
--
You received this message because you are subscribed to the Google Groups "vert.x" group.
To unsubscribe from this group and stop receiving emails from it, send an email to vertx+unsubscribe@googlegroups.com.
Visit this group at https://groups.google.com/group/vertx.
To view this discussion on the web, visit https://groups.google.com/d/msgid/vertx/6cdeda55-daa4-4747-84a0-3997f098c076%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
--
You received this message because you are subscribed to a topic in the Google Groups "vert.x" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/vertx/FI86Eqg5Z08/unsubscribe.
To unsubscribe from this group and all its topics, send an email to vertx+unsubscribe@googlegroups.com.
Visit this group at https://groups.google.com/group/vertx.
To view this discussion on the web, visit https://groups.google.com/d/msgid/vertx/CACiEr_SLZtDXJ2DtkDi2up-aoW1zXbpkGjFv4O_Sy%3DSPqrFVFA%40mail.gmail.com.