{"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":11,"created_at":"2015-11-03T03:15:26Z","updated_at":"2015-11-07T16:05:45Z","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/154718879","html_url":"https://github.com/leafo/lapis/issues/345#issuecomment-154718879","issue_url":"https://api.github.com/repos/leafo/lapis/issues/345","id":154718879,"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},"created_at":"2015-11-07T16:05:45Z","updated_at":"2015-11-07T16:05:45Z","body":"Solved!\r\nIn application.moon of lapis I changed line\r\nlayout_path = @options.layout\r\nto\r\nlayout_path = @options.layout or @app.layout\r\nNow it's useable!"}}