{"action":"created","issue":{"url":"https://api.github.com/repos/google/closure-templates/issues/96","repository_url":"https://api.github.com/repos/google/closure-templates","labels_url":"https://api.github.com/repos/google/closure-templates/issues/96/labels{/name}","comments_url":"https://api.github.com/repos/google/closure-templates/issues/96/comments","events_url":"https://api.github.com/repos/google/closure-templates/issues/96/events","html_url":"https://github.com/google/closure-templates/issues/96","id":149790728,"number":96,"title":"SoyToIncrementalDomSrcCompiler issue with html|string param","user":{"login":"mairatma","id":5216049,"avatar_url":"https://avatars.githubusercontent.com/u/5216049?v=3","gravatar_id":"","url":"https://api.github.com/users/mairatma","html_url":"https://github.com/mairatma","followers_url":"https://api.github.com/users/mairatma/followers","following_url":"https://api.github.com/users/mairatma/following{/other_user}","gists_url":"https://api.github.com/users/mairatma/gists{/gist_id}","starred_url":"https://api.github.com/users/mairatma/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mairatma/subscriptions","organizations_url":"https://api.github.com/users/mairatma/orgs","repos_url":"https://api.github.com/users/mairatma/repos","events_url":"https://api.github.com/users/mairatma/events{/privacy}","received_events_url":"https://api.github.com/users/mairatma/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":8,"created_at":"2016-04-20T14:50:19Z","updated_at":"2016-08-29T19:21:19Z","closed_at":null,"body":"If a param's type is defined as `html|string` it will always be rendered as a string, so passing html will try to render a function instead. For example:\r\n\r\n```\r\n{template .render}\r\n  {@param content: html|string}\r\n  {$content}\r\n{/template}\r\n```\r\n\r\nThis soy is compiled to:\r\n\r\n```js\r\nfunction $render(opt_data, opt_ignored, opt_ijData) {\r\n  soy.asserts.assertType((opt_data.content instanceof Function) || (opt_data.content instanceof goog.soy.data.SanitizedContent) || (opt_data.content instanceof soydata.UnsanitizedText) || goog.isString(opt_data.content), 'content', opt_data.content, '!soydata.SanitizedHtml|string');\r\n  var content = /** @type {!soydata.SanitizedHtml|string} */ (opt_data.content);\r\n  itext((goog.asserts.assert((content) != null), content));\r\n}\r\n```"},"comment":{"url":"https://api.github.com/repos/google/closure-templates/issues/comments/243226972","html_url":"https://github.com/google/closure-templates/issues/96#issuecomment-243226972","issue_url":"https://api.github.com/repos/google/closure-templates/issues/96","id":243226972,"user":{"login":"hochhaus","id":5508784,"avatar_url":"https://avatars.githubusercontent.com/u/5508784?v=3","gravatar_id":"","url":"https://api.github.com/users/hochhaus","html_url":"https://github.com/hochhaus","followers_url":"https://api.github.com/users/hochhaus/followers","following_url":"https://api.github.com/users/hochhaus/following{/other_user}","gists_url":"https://api.github.com/users/hochhaus/gists{/gist_id}","starred_url":"https://api.github.com/users/hochhaus/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/hochhaus/subscriptions","organizations_url":"https://api.github.com/users/hochhaus/orgs","repos_url":"https://api.github.com/users/hochhaus/repos","events_url":"https://api.github.com/users/hochhaus/events{/privacy}","received_events_url":"https://api.github.com/users/hochhaus/received_events","type":"User","site_admin":false},"created_at":"2016-08-29T19:21:19Z","updated_at":"2016-08-29T19:21:19Z","body":"Also, jars are available on maven.org\r\n\r\nhttp://repo1.maven.org/maven2/com/google/template/soy/2016-08-25/soy-2016-08-25-SoyToIncrementalDomSrcCompiler.jar"}}
{"actor":{"display_login":"hochhaus"}}