{"action":"created","issue":{"url":"https://api.github.com/repos/gohugoio/hugo/issues/4947","repository_url":"https://api.github.com/repos/gohugoio/hugo","labels_url":"https://api.github.com/repos/gohugoio/hugo/issues/4947/labels{/name}","comments_url":"https://api.github.com/repos/gohugoio/hugo/issues/4947/comments","events_url":"https://api.github.com/repos/gohugoio/hugo/issues/4947/events","html_url":"https://github.com/gohugoio/hugo/issues/4947","id":341224613,"node_id":"MDU6SXNzdWUzNDEyMjQ2MTM=","number":4947,"title":"Deprecate isset","user":{"login":"onedrawingperday","id":7918298,"node_id":"MDQ6VXNlcjc5MTgyOTg=","avatar_url":"https://avatars0.githubusercontent.com/u/7918298?v=4","gravatar_id":"","url":"https://api.github.com/users/onedrawingperday","html_url":"https://github.com/onedrawingperday","followers_url":"https://api.github.com/users/onedrawingperday/followers","following_url":"https://api.github.com/users/onedrawingperday/following{/other_user}","gists_url":"https://api.github.com/users/onedrawingperday/gists{/gist_id}","starred_url":"https://api.github.com/users/onedrawingperday/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/onedrawingperday/subscriptions","organizations_url":"https://api.github.com/users/onedrawingperday/orgs","repos_url":"https://api.github.com/users/onedrawingperday/repos","events_url":"https://api.github.com/users/onedrawingperday/events{/privacy}","received_events_url":"https://api.github.com/users/onedrawingperday/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":4,"created_at":"2018-07-14T09:52:03Z","updated_at":"2018-07-18T15:13:28Z","closed_at":null,"author_association":"MEMBER","body":"I cannot think of a valid use case for `isset` anymore. It is superseded by `with` and the Support Forum has several threads from users who encounter problems because a code block is not escaped when using `isset`.\r\n\r\nLatest example [here](https://discourse.gohugo.io/t/hugo-panic-when-using-next/12931)\r\n\r\nObviously this will be a breaking change and it's up to the community to decide.\r\n\r\nThoughts?"},"comment":{"url":"https://api.github.com/repos/gohugoio/hugo/issues/comments/405966988","html_url":"https://github.com/gohugoio/hugo/issues/4947#issuecomment-405966988","issue_url":"https://api.github.com/repos/gohugoio/hugo/issues/4947","id":405966988,"node_id":"MDEyOklzc3VlQ29tbWVudDQwNTk2Njk4OA==","user":{"login":"StephenBrown2","id":1148665,"node_id":"MDQ6VXNlcjExNDg2NjU=","avatar_url":"https://avatars3.githubusercontent.com/u/1148665?v=4","gravatar_id":"","url":"https://api.github.com/users/StephenBrown2","html_url":"https://github.com/StephenBrown2","followers_url":"https://api.github.com/users/StephenBrown2/followers","following_url":"https://api.github.com/users/StephenBrown2/following{/other_user}","gists_url":"https://api.github.com/users/StephenBrown2/gists{/gist_id}","starred_url":"https://api.github.com/users/StephenBrown2/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/StephenBrown2/subscriptions","organizations_url":"https://api.github.com/users/StephenBrown2/orgs","repos_url":"https://api.github.com/users/StephenBrown2/repos","events_url":"https://api.github.com/users/StephenBrown2/events{/privacy}","received_events_url":"https://api.github.com/users/StephenBrown2/received_events","type":"User","site_admin":false},"created_at":"2018-07-18T15:13:28Z","updated_at":"2018-07-18T15:13:28Z","author_association":"NONE","body":"What about for data-driven sites? For example, I have a page with the following:\r\n```\r\n<h2 id=\"group-shows\">Selected Group Shows</h2>\r\n<dl class=\"hxList\">\r\n{{ range sort .Site.Data.group_shows \"dateBegin\" \"desc\" }}\r\n  <div>\r\n  <dt>{{ dateFormat \"2006\" .dateBegin }}</dt>\r\n  <dd>{{ .eventName }}, {{ .venue }}{{ if isset . \"venueCity\" }}, {{ .venueCity }}, {{ .venueState }}{{ end }}</dd>\r\n  </div>\r\n{{ end }}\r\n</dl>\r\n```\r\n\r\nFor example, if the venue is online, there is no city or state, so the data for that entry would look like:\r\n```\r\n- eventName: OPA Online Showcase - Fall 2013\r\n  eventTitle: null\r\n  eventUrl: 'http://opaonlineshowcase.com/paintings/121/?s=all'\r\n  dateBegin: 2013-10-01\r\n  dateEnd: 2013-12-15\r\n  sponsor: Oil Painters of America\r\n  sponsorUrl: 'http://www.oilpaintersofamerica.com'\r\n  venue: OPA Online Showcase\r\n  venueAddress: null\r\n  venueCity: null\r\n  venueState: null\r\n  venueTZip: null\r\n  venueUrl: 'http://opaonlineshowcase.com'\r\n```\r\n\r\nWould `{{ with .Get \"dataKey\" }}` work for that instance, where I need the context to remain the same?"}}
{"actor":{"display_login":"StephenBrown2"}}