{"action":"closed","issue":{"url":"https://api.github.com/repos/kirbysayshi/vash/issues/83","labels_url":"https://api.github.com/repos/kirbysayshi/vash/issues/83/labels{/name}","comments_url":"https://api.github.com/repos/kirbysayshi/vash/issues/83/comments","events_url":"https://api.github.com/repos/kirbysayshi/vash/issues/83/events","html_url":"https://github.com/kirbysayshi/vash/issues/83","id":95202252,"number":83,"title":" different html file in vash by command","user":{"login":"fghhfg","id":1284845,"avatar_url":"https://avatars.githubusercontent.com/u/1284845?v=3","gravatar_id":"","url":"https://api.github.com/users/fghhfg","html_url":"https://github.com/fghhfg","followers_url":"https://api.github.com/users/fghhfg/followers","following_url":"https://api.github.com/users/fghhfg/following{/other_user}","gists_url":"https://api.github.com/users/fghhfg/gists{/gist_id}","starred_url":"https://api.github.com/users/fghhfg/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/fghhfg/subscriptions","organizations_url":"https://api.github.com/users/fghhfg/orgs","repos_url":"https://api.github.com/users/fghhfg/repos","events_url":"https://api.github.com/users/fghhfg/events{/privacy}","received_events_url":"https://api.github.com/users/fghhfg/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":0,"created_at":"2015-07-15T14:04:19Z","updated_at":"2015-07-16T08:55:46Z","closed_at":"2015-07-16T08:55:46Z","body":"With `@model` in `layout.vash`, I can use same layout(.vash) with diff contents(obj) by command:\r\n```js\r\n// command\r\nvar tpl = vash.compile( layout.vash );\r\nvar out1 = tpl(content_obj1);\r\nvar out2 = tpl(content_obj2);\r\nvar out3 = tpl(content_obj3);\r\n```\r\n\r\nWhat if I want to use diff `html` file in `layout.vash`?\r\nI want to use different `file_name.html` (a.html, b.html, c.html) by command:\r\n```js\r\n// layout.vash\r\n...\r\n@html.include(file_name.html, obj)\r\n...\r\n```\r\n\r\nHow to do that?\r\n```js\r\n// command\r\nvar tpl = vash.compile( layout.vash );\r\nvar out1 = tpl(a.html???);\r\n```"}}