{"action":"created","issue":{"url":"https://api.github.com/repos/leafo/lapis/issues/345","labels_url":"https://api.github.com/repos/leafo/lapis/issues/345/labels{/name}","comments_url":"https://api.github.com/repos/leafo/lapis/issues/345/comments","events_url":"https://api.github.com/repos/leafo/lapis/issues/345/events","html_url":"https://github.com/leafo/lapis/issues/345","id":114734670,"number":345,"title":"layout with etlua","user":{"login":"Romaboy","id":2934876,"avatar_url":"https://avatars.githubusercontent.com/u/2934876?v=3","gravatar_id":"","url":"https://api.github.com/users/Romaboy","html_url":"https://github.com/Romaboy","followers_url":"https://api.github.com/users/Romaboy/followers","following_url":"https://api.github.com/users/Romaboy/following{/other_user}","gists_url":"https://api.github.com/users/Romaboy/gists{/gist_id}","starred_url":"https://api.github.com/users/Romaboy/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Romaboy/subscriptions","organizations_url":"https://api.github.com/users/Romaboy/orgs","repos_url":"https://api.github.com/users/Romaboy/repos","events_url":"https://api.github.com/users/Romaboy/events{/privacy}","received_events_url":"https://api.github.com/users/Romaboy/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2015-11-03T03:15:26Z","updated_at":"2015-11-03T04:19:23Z","closed_at":null,"body":"Is it possible to use etlua and layout at the same time? All sources, that I founded, has moonscript views, it's too woefully for me to do the same. In docs there is: \"Create views/layout.etlua\": => etlua template, cool, than \"app.layout = require \"views.layout\"\", which couldn't work, because server is searching for .lua file. And than: -- the rest of the application..., cool, rest of the application, and how can I tell to etlua templates, that they must to go to the <% content_for(\"inner\") %>? Maybe there is something like yield?"},"comment":{"url":"https://api.github.com/repos/leafo/lapis/issues/comments/153235058","html_url":"https://github.com/leafo/lapis/issues/345#issuecomment-153235058","issue_url":"https://api.github.com/repos/leafo/lapis/issues/345","id":153235058,"user":{"login":"soccermitchy","id":443155,"avatar_url":"https://avatars.githubusercontent.com/u/443155?v=3","gravatar_id":"","url":"https://api.github.com/users/soccermitchy","html_url":"https://github.com/soccermitchy","followers_url":"https://api.github.com/users/soccermitchy/followers","following_url":"https://api.github.com/users/soccermitchy/following{/other_user}","gists_url":"https://api.github.com/users/soccermitchy/gists{/gist_id}","starred_url":"https://api.github.com/users/soccermitchy/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/soccermitchy/subscriptions","organizations_url":"https://api.github.com/users/soccermitchy/orgs","repos_url":"https://api.github.com/users/soccermitchy/repos","events_url":"https://api.github.com/users/soccermitchy/events{/privacy}","received_events_url":"https://api.github.com/users/soccermitchy/received_events","type":"User","site_admin":false},"created_at":"2015-11-03T04:19:23Z","updated_at":"2015-11-03T04:19:23Z","body":"To get it to allow you to use etlua templates, you need to call\napp:enable'etlua'\n\nOn Mon, Nov 2, 2015 at 10:15 PM, Romaboy <notifications@github.com> wrote:\n\n> Is it possible to use etlua and layout at the same time? All sources, that\n> I founded, has moonscript views, it's too woefully for me to do the same.\n> In docs there is: \"Create views/layout.etlua\": => etlua template, cool,\n> than \"app.layout = require \"views.layout\"\", which couldn't work, because\n> server is searching for .lua file. And than: -- the rest of the\n> application..., cool, rest of the application, and how can I tell to etlua\n> templates, that they must to go to the <% content_for(\"inner\") %>? Maybe\n> there is something like yield?\n>\n> —\n> Reply to this email directly or view it on GitHub\n> <https://github.com/leafo/lapis/issues/345>.\n>\n"}}