{"action":"closed","issue":{"url":"https://api.github.com/repos/kirbysayshi/vash/issues/56","labels_url":"https://api.github.com/repos/kirbysayshi/vash/issues/56/labels{/name}","comments_url":"https://api.github.com/repos/kirbysayshi/vash/issues/56/comments","events_url":"https://api.github.com/repos/kirbysayshi/vash/issues/56/events","html_url":"https://github.com/kirbysayshi/vash/issues/56","id":60223900,"number":56,"title":"Object is not a function when using @html.extend","user":{"login":"venelinpetrov","id":3126733,"avatar_url":"https://avatars.githubusercontent.com/u/3126733?v=3","gravatar_id":"","url":"https://api.github.com/users/venelinpetrov","html_url":"https://github.com/venelinpetrov","followers_url":"https://api.github.com/users/venelinpetrov/followers","following_url":"https://api.github.com/users/venelinpetrov/following{/other_user}","gists_url":"https://api.github.com/users/venelinpetrov/gists{/gist_id}","starred_url":"https://api.github.com/users/venelinpetrov/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/venelinpetrov/subscriptions","organizations_url":"https://api.github.com/users/venelinpetrov/orgs","repos_url":"https://api.github.com/users/venelinpetrov/repos","events_url":"https://api.github.com/users/venelinpetrov/events{/privacy}","received_events_url":"https://api.github.com/users/venelinpetrov/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":0,"created_at":"2015-03-07T20:52:56Z","updated_at":"2015-03-07T20:55:02Z","closed_at":"2015-03-07T20:55:02Z","body":"I have a layout.vash and index.vash in the same folder (i.e. they are siblings). The content of the files is as follows:\r\n\r\nindex.vash\r\n\r\n@html.extend('layout', function(model){\r\n    @html.block('content', function(model){\r\n        <h1 class=\"name\">Welcome to </h1>\r\n    })\r\n})\r\n\r\n\r\nlayout.vash\r\n\r\n<!doctype html>\r\n<html>\r\n<head>\r\n\t<title>@title</title>\r\n</head>\r\n<body>\r\n\t<h1>common</h1>\r\n\t@html.block('content', function(model){\r\n\t\t<p>Hello, I'm default content. It's nice to meet you.</p>\r\n\t})\r\n</body>\r\n</html>\r\n\r\n\r\nError: Problem while rendering template at line 4, character 5. Original message: object is not a function. Context: 2 | @html.block('content', function(model){ 3 | <h1 class=\"name\">Welcome to </h1> > 4 | }) 5 | })"}}