{"action":"opened","issue":{"url":"https://api.github.com/repos/tornadoweb/tornado/issues/1521","labels_url":"https://api.github.com/repos/tornadoweb/tornado/issues/1521/labels{/name}","comments_url":"https://api.github.com/repos/tornadoweb/tornado/issues/1521/comments","events_url":"https://api.github.com/repos/tornadoweb/tornado/issues/1521/events","html_url":"https://github.com/tornadoweb/tornado/issues/1521","id":107657068,"number":1521,"title":"Including a page which extends another template raises NotImplementedError","user":{"login":"holymonson","id":902012,"avatar_url":"https://avatars.githubusercontent.com/u/902012?v=3","gravatar_id":"","url":"https://api.github.com/users/holymonson","html_url":"https://github.com/holymonson","followers_url":"https://api.github.com/users/holymonson/followers","following_url":"https://api.github.com/users/holymonson/following{/other_user}","gists_url":"https://api.github.com/users/holymonson/gists{/gist_id}","starred_url":"https://api.github.com/users/holymonson/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/holymonson/subscriptions","organizations_url":"https://api.github.com/users/holymonson/orgs","repos_url":"https://api.github.com/users/holymonson/repos","events_url":"https://api.github.com/users/holymonson/events{/privacy}","received_events_url":"https://api.github.com/users/holymonson/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":0,"created_at":"2015-09-22T07:00:04Z","updated_at":"2015-09-22T07:00:04Z","closed_at":null,"body":"example, rendering mypage.html will fail:\r\n```\r\n<!-- mypage.html -->\r\n{% include \"another.html\" %}\r\n\r\n<!-- another.html -->\r\n{% extends \"base.html\" %}\r\n{% block title %}My page title{% end %}\r\n\r\n<!-- base.html -->\r\n<title>{% block title %}Default title{% end %}</title>\r\n\r\n```\r\n\r\ncalltrace:\r\n```\r\n    Traceback (most recent call last):\r\n      File \"/usr/local/lib/python3.4/site-packages/tornado/web.py\", line 1369, in _stack_context_handle_exception\r\n        raise_exc_info((type, value, traceback))\r\n      File \"<string>\", line 3, in raise_exc_info\r\n      File \"/usr/local/lib/python3.4/site-packages/tornado/web.py\", line 1572, in wrapper\r\n        result = method(self, *args, **kwargs)\r\n      File \"./main.py\", line 206, in get\r\n        self.render(\"entrance.html\", title=\"My title\", series=series, layouts=layouts)\r\n      File \"/usr/local/lib/python3.4/site-packages/tornado/web.py\", line 704, in render\r\n        html = self.render_string(template_name, **kwargs)\r\n      File \"/usr/local/lib/python3.4/site-packages/tornado/web.py\", line 808, in render_string\r\n        t = loader.load(template_name)\r\n      File \"/usr/local/lib/python3.4/site-packages/tornado/template.py\", line 343, in load\r\n        self.templates[name] = self._create_template(name)\r\n      File \"/usr/local/lib/python3.4/site-packages/tornado/template.py\", line 371, in _create_template\r\n        template = Template(f.read(), name=name, loader=self)\r\n      File \"/usr/local/lib/python3.4/site-packages/tornado/template.py\", line 237, in __init__\r\n        self.code = self._generate_python(loader, compress_whitespace)\r\n      File \"/usr/local/lib/python3.4/site-packages/tornado/template.py\", line 291, in _generate_python\r\n        ancestors[0].generate(writer)\r\n      File \"/usr/local/lib/python3.4/site-packages/tornado/template.py\", line 416, in generate\r\n        self.body.generate(writer)\r\n      File \"/usr/local/lib/python3.4/site-packages/tornado/template.py\", line 429, in generate\r\n        chunk.generate(writer)\r\n      File \"/usr/local/lib/python3.4/site-packages/tornado/template.py\", line 473, in generate\r\n        included.file.body.generate(writer)\r\n      File \"/usr/local/lib/python3.4/site-packages/tornado/template.py\", line 429, in generate\r\n        chunk.generate(writer)\r\n      File \"/usr/local/lib/python3.4/site-packages/tornado/template.py\", line 398, in generate\r\n        raise NotImplementedError()\r\n    NotImplementedError\r\n```\r\n"}}