{"action":"created","issue":{"url":"https://api.github.com/repos/jandecaluwe/urubu/issues/47","repository_url":"https://api.github.com/repos/jandecaluwe/urubu","labels_url":"https://api.github.com/repos/jandecaluwe/urubu/issues/47/labels{/name}","comments_url":"https://api.github.com/repos/jandecaluwe/urubu/issues/47/comments","events_url":"https://api.github.com/repos/jandecaluwe/urubu/issues/47/events","html_url":"https://github.com/jandecaluwe/urubu/pull/47","id":149777569,"number":47,"title":"Add option for jinja2 to fail on undefined vars","user":{"login":"leouieda","id":290082,"avatar_url":"https://avatars.githubusercontent.com/u/290082?v=3","gravatar_id":"","url":"https://api.github.com/users/leouieda","html_url":"https://github.com/leouieda","followers_url":"https://api.github.com/users/leouieda/followers","following_url":"https://api.github.com/users/leouieda/following{/other_user}","gists_url":"https://api.github.com/users/leouieda/gists{/gist_id}","starred_url":"https://api.github.com/users/leouieda/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/leouieda/subscriptions","organizations_url":"https://api.github.com/users/leouieda/orgs","repos_url":"https://api.github.com/users/leouieda/repos","events_url":"https://api.github.com/users/leouieda/events{/privacy}","received_events_url":"https://api.github.com/users/leouieda/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":3,"created_at":"2016-04-20T14:04:11Z","updated_at":"2016-04-26T14:56:51Z","closed_at":"2016-04-26T10:05:44Z","pull_request":{"url":"https://api.github.com/repos/jandecaluwe/urubu/pulls/47","html_url":"https://github.com/jandecaluwe/urubu/pull/47","diff_url":"https://github.com/jandecaluwe/urubu/pull/47.diff","patch_url":"https://github.com/jandecaluwe/urubu/pull/47.patch"},"body":"If a variable is missing from a template, the current behavior of urubu is to treat it as an empty string. So if you forget to define (or define it wrong), the resulting HTML will be empty and you might not\r\nrealize it.\r\n\r\nThis adds an optional argument to `_site.yml` called `strict_undefined`. If omitted or `false`, urubu behaves normally. If defined and `true`, then will add `undefined=jinja2.StrictUndefined` to `jinja2.Environment` and jinja will fail with an error when an undefined variable is encountered.\r\n\r\nI haven't added this to the docs. If you think it's a good option to have, then I'd welcome some pointers as to where I should document this."},"comment":{"url":"https://api.github.com/repos/jandecaluwe/urubu/issues/comments/214772721","html_url":"https://github.com/jandecaluwe/urubu/pull/47#issuecomment-214772721","issue_url":"https://api.github.com/repos/jandecaluwe/urubu/issues/47","id":214772721,"user":{"login":"leouieda","id":290082,"avatar_url":"https://avatars.githubusercontent.com/u/290082?v=3","gravatar_id":"","url":"https://api.github.com/users/leouieda","html_url":"https://github.com/leouieda","followers_url":"https://api.github.com/users/leouieda/followers","following_url":"https://api.github.com/users/leouieda/following{/other_user}","gists_url":"https://api.github.com/users/leouieda/gists{/gist_id}","starred_url":"https://api.github.com/users/leouieda/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/leouieda/subscriptions","organizations_url":"https://api.github.com/users/leouieda/orgs","repos_url":"https://api.github.com/users/leouieda/repos","events_url":"https://api.github.com/users/leouieda/events{/privacy}","received_events_url":"https://api.github.com/users/leouieda/received_events","type":"User","site_admin":false},"created_at":"2016-04-26T14:56:51Z","updated_at":"2016-04-26T14:56:51Z","body":"OK, I thought it was something like that.\r\n\r\nI liked using this flag because it caught a lot of errors in my template that were silently being left blank. "}}