{"number":67,"pull_request":{"number":67,"issue_url":"https://github.com/mitsuhiko/jinja2/issues/67","head":{"repo":{"master_branch":null,"name":"jinja2","created_at":"2011-10-11T03:33:19Z","size":160,"clone_url":"https://github.com/cwillu/jinja2.git","private":false,"updated_at":"2011-10-11T04:19:02Z","watchers":1,"ssh_url":"git@github.com:cwillu/jinja2.git","url":"https://api.github.com/repos/cwillu/jinja2","git_url":"git://github.com/cwillu/jinja2.git","language":"Python","fork":true,"svn_url":"https://svn.github.com/cwillu/jinja2","id":2552778,"pushed_at":"2011-10-11T04:19:02Z","open_issues":0,"homepage":"http://jinja.pocoo.org/2/","description":"The Jinja2 template engine","forks":0,"html_url":"https://github.com/cwillu/jinja2","owner":{"avatar_url":"https://secure.gravatar.com/avatar/8391e65e62ecef3c7bc90018e49cf6e4?d=https://a248.e.akamai.net/assets.github.com%2Fimages%2Fgravatars%2Fgravatar-140.png","url":"https://api.github.com/users/cwillu","id":21612,"login":"cwillu"}},"label":"cwillu:master","sha":"c48b6ccb3b0b0d96c50bc2d6418904667cbf4c81","ref":"master","user":{"avatar_url":"https://secure.gravatar.com/avatar/8391e65e62ecef3c7bc90018e49cf6e4?d=https://a248.e.akamai.net/assets.github.com%2Fimages%2Fgravatars%2Fgravatar-140.png","url":"https://api.github.com/users/cwillu","id":21612,"login":"cwillu"}},"merged_by":null,"created_at":"2011-10-11T04:26:14Z","changed_files":1,"merged":false,"body":"In many situations, it is preferable to hobble along (or even make only passing notice) when errors occur rather than blowing up the rendering completely.\r\n\r\nMy particular case is templates which are created by non-technical users in inkscape.  I have found over the last year or so that clear but self-contained effects are desirable in this role.\r\n\r\nI do have a continuing issue though, where iteration occasionally trips over the concat implementation in utils;  runtime contains a suitable replacement (unicode_join becomes the initial _concat implementation instead of u\"\".join), but an alternative would be for LaxUndefined to inherit from unicode instead of Undefined, and registering itself on Undefined's new metaclass.  I'm not sure which you would find more palatable.\r\n\r\nCheers\r\n--cwillu","comments":0,"title":"LaxUndefined","additions":40,"diff_url":"https://github.com/mitsuhiko/jinja2/pull/67.diff","updated_at":"2011-10-11T04:26:14Z","url":"https://api.github.com/repos/mitsuhiko/jinja2/pulls/67","id":392317,"patch_url":"https://github.com/mitsuhiko/jinja2/pull/67.patch","mergeable":null,"merged_at":null,"commits":2,"closed_at":null,"user":{"avatar_url":"https://secure.gravatar.com/avatar/8391e65e62ecef3c7bc90018e49cf6e4?d=https://a248.e.akamai.net/assets.github.com%2Fimages%2Fgravatars%2Fgravatar-140.png","url":"https://api.github.com/users/cwillu","id":21612,"login":"cwillu"},"deletions":1,"html_url":"https://github.com/mitsuhiko/jinja2/pull/67","base":{"repo":{"master_branch":null,"name":"jinja2","created_at":"2010-10-17T13:41:17Z","size":352,"clone_url":"https://github.com/mitsuhiko/jinja2.git","private":false,"updated_at":"2011-10-11T04:26:14Z","watchers":318,"ssh_url":"git@github.com:mitsuhiko/jinja2.git","url":"https://api.github.com/repos/mitsuhiko/jinja2","git_url":"git://github.com/mitsuhiko/jinja2.git","language":"Python","fork":false,"svn_url":"https://svn.github.com/mitsuhiko/jinja2","id":994551,"pushed_at":"2011-10-11T04:26:14Z","open_issues":28,"homepage":"http://jinja.pocoo.org/2/","description":"The Jinja2 template engine","forks":54,"html_url":"https://github.com/mitsuhiko/jinja2","owner":{"avatar_url":"https://secure.gravatar.com/avatar/181de1fb11dffe39774f3e2e23cda3b6?d=https://a248.e.akamai.net/assets.github.com%2Fimages%2Fgravatars%2Fgravatar-140.png","url":"https://api.github.com/users/mitsuhiko","id":7396,"login":"mitsuhiko"}},"label":"mitsuhiko:master","sha":"7d268bef0e8f3f12c0acb90f30d67726a3e3f261","ref":"master","user":{"avatar_url":"https://secure.gravatar.com/avatar/181de1fb11dffe39774f3e2e23cda3b6?d=https://a248.e.akamai.net/assets.github.com%2Fimages%2Fgravatars%2Fgravatar-140.png","url":"https://api.github.com/users/mitsuhiko","id":7396,"login":"mitsuhiko"}},"state":"open"},"action":"opened"}