{"action":"opened","issue":{"url":"https://api.github.com/repos/vert-x3/vertx-web/issues/452","repository_url":"https://api.github.com/repos/vert-x3/vertx-web","labels_url":"https://api.github.com/repos/vert-x3/vertx-web/issues/452/labels{/name}","comments_url":"https://api.github.com/repos/vert-x3/vertx-web/issues/452/comments","events_url":"https://api.github.com/repos/vert-x3/vertx-web/issues/452/events","html_url":"https://github.com/vert-x3/vertx-web/issues/452","id":176076281,"number":452,"title":"Allow templates to be loaded from classpath","user":{"login":"bmsantos","id":4486595,"avatar_url":"https://avatars.githubusercontent.com/u/4486595?v=3","gravatar_id":"","url":"https://api.github.com/users/bmsantos","html_url":"https://github.com/bmsantos","followers_url":"https://api.github.com/users/bmsantos/followers","following_url":"https://api.github.com/users/bmsantos/following{/other_user}","gists_url":"https://api.github.com/users/bmsantos/gists{/gist_id}","starred_url":"https://api.github.com/users/bmsantos/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/bmsantos/subscriptions","organizations_url":"https://api.github.com/users/bmsantos/orgs","repos_url":"https://api.github.com/users/bmsantos/repos","events_url":"https://api.github.com/users/bmsantos/events{/privacy}","received_events_url":"https://api.github.com/users/bmsantos/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2016-09-09T18:26:41Z","updated_at":"2016-09-09T18:26:41Z","closed_at":null,"body":"### Version\r\n\r\n* vert.x core: 3.3.2\r\n* vert.x web: 3.3.2\r\n\r\n### Context\r\n\r\nAllow FreeMarker template engine to load resources from classpath.\r\n\r\n### Steps to reproduce\r\n\r\n1. Create a Vertx embedded application (I used a SpringBoot app with embedded vertx)\r\n2. Create a jar with all required template resources in it\r\n3. Open a browser and access a template based page\r\n4. Notice the following exception:\r\n\r\n```\r\nfreemarker.template.TemplateNotFoundException: Template not found for name \"/templates/applicationController/index.ftl\".\r\nThe name was interpreted by this TemplateLoader: io.vertx.ext.web.templ.impl.FreeMarkerTemplateLoader@6c314514.\r\n       \tat freemarker.template.Configuration.getTemplate(Configuration.java:2485) ~[freemarker-2.3.25-incubating.jar!/:2.3.25]\r\n       \tat freemarker.template.Configuration.getTemplate(Configuration.java:2287) ~[freemarker-2.3.25-incubating.jar!/:2.3.25]\r\n       \tat io.vertx.ext.web.templ.impl.FreeMarkerTemplateEngineImpl.render(FreeMarkerTemplateEngineImpl.java:72) ~[vertx-web-templ-freemarker-3.3.2.jar!/:na]\r\n       \tat io.vertx.rxjava.ext.web.templ.TemplateEngine.render(TemplateEngine.java:54) ~[vertx-web-3.3.2.jar!/:na]\r\n...\r\n```"}}
{"actor":{"display_login":"bmsantos"}}