{"action":"opened","issue":{"url":"https://api.github.com/repos/spullara/mustache.java/issues/191","repository_url":"https://api.github.com/repos/spullara/mustache.java","labels_url":"https://api.github.com/repos/spullara/mustache.java/issues/191/labels{/name}","comments_url":"https://api.github.com/repos/spullara/mustache.java/issues/191/comments","events_url":"https://api.github.com/repos/spullara/mustache.java/issues/191/events","html_url":"https://github.com/spullara/mustache.java/issues/191","id":234264211,"number":191,"title":"Data for Partials","user":{"login":"d0x7","id":17951467,"avatar_url":"https://avatars2.githubusercontent.com/u/17951467?v=3","gravatar_id":"","url":"https://api.github.com/users/d0x7","html_url":"https://github.com/d0x7","followers_url":"https://api.github.com/users/d0x7/followers","following_url":"https://api.github.com/users/d0x7/following{/other_user}","gists_url":"https://api.github.com/users/d0x7/gists{/gist_id}","starred_url":"https://api.github.com/users/d0x7/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/d0x7/subscriptions","organizations_url":"https://api.github.com/users/d0x7/orgs","repos_url":"https://api.github.com/users/d0x7/repos","events_url":"https://api.github.com/users/d0x7/events{/privacy}","received_events_url":"https://api.github.com/users/d0x7/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2017-06-07T16:13:26Z","updated_at":"2017-06-07T16:13:26Z","closed_at":null,"body":"Hello,\r\n\r\nI'm trying to use mustache together with Jersey, but I'm experiencing a strange issue when using Partials.\r\nJersey offers a module for Mustache Java so it works just fine, I can use partials as expected.\r\nTo handle exceptions with jersey, you can specify an ExceptionMapper, but these ExceptionMappers don't support Mustache, so I decided to create my \"own\" instance of a MustacheFactory just for the ExceptionMappers. And here's my issue: When using my own MustacheFactory, partials aren't rendered as expected. For example:\r\n\r\n```JAVA\r\nMustacheFactory mustacheFactory = new DefaultMustacheFactory();\r\nMustache mustache = mustacheFactory.compile(\"templates/someTemplate.mustache\");\r\nStringWriter stringWriter = new StringWriter();\r\nmustache.execute(stringWriter, ImmutableMap.of(\"title\", \"Some title!\"));\r\nSystem.out.println(stringWriter.toString());\r\n```\r\n\r\nheader.mustache\r\n```HTML\r\n<!DOCTYPE html>\r\n<html>\r\n<head>\r\n    <title>{{ title }}</title>\r\n</head>\r\n<body>\r\n```\r\n\r\nsomeTemplate.mustache\r\n```HTML\r\n{{>templates/header}}\r\n<h1>This is mustacheee</h1>\r\n```\r\n(And a footer, but that's not important for now.)\r\n\r\nThe expected output would be\r\n\r\n```HTML\r\n<!DOCTYPE html>\r\n<html>\r\n<head>\r\n    <title>Some title!</title>\r\n</head>\r\n<body>\r\n<h1>This is mustacheee</h1>\r\n```\r\n\r\nBut instead, the <title> Tag is empty.\r\n\r\nAs mentioned before, when using Mustache with Jersey, it works like a charm.\r\n\r\nDoes someone know, what the issue is? Is there any way to specify data for partials (in Java)?"}}
{"actor":{"display_login":"d0x7"}}