{"action":"opened","issue":{"url":"https://api.github.com/repos/laravel/framework/issues/12377","repository_url":"https://api.github.com/repos/laravel/framework","labels_url":"https://api.github.com/repos/laravel/framework/issues/12377/labels{/name}","comments_url":"https://api.github.com/repos/laravel/framework/issues/12377/comments","events_url":"https://api.github.com/repos/laravel/framework/issues/12377/events","html_url":"https://github.com/laravel/framework/issues/12377","id":134852775,"number":12377,"title":"Support for Blade @include_block feature ?","user":{"login":"vladrusu","id":1551081,"avatar_url":"https://avatars.githubusercontent.com/u/1551081?v=3","gravatar_id":"","url":"https://api.github.com/users/vladrusu","html_url":"https://github.com/vladrusu","followers_url":"https://api.github.com/users/vladrusu/followers","following_url":"https://api.github.com/users/vladrusu/following{/other_user}","gists_url":"https://api.github.com/users/vladrusu/gists{/gist_id}","starred_url":"https://api.github.com/users/vladrusu/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/vladrusu/subscriptions","organizations_url":"https://api.github.com/users/vladrusu/orgs","repos_url":"https://api.github.com/users/vladrusu/repos","events_url":"https://api.github.com/users/vladrusu/events{/privacy}","received_events_url":"https://api.github.com/users/vladrusu/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":0,"created_at":"2016-02-19T12:19:46Z","updated_at":"2016-02-19T12:19:46Z","closed_at":null,"body":"Hello !\r\nI am trying to find a nice, flexbile way to display alerts (and basically insert small html \"snippets\"/helpers) in my project.\r\n\r\nTypically, the code for an alert goes like:\r\n> `<div class=\"alert alert-info\" role=\"alert\">`\r\n> `.... html code .... (several lines of <p>s and stuff)`\r\n> `</div>`\r\n\r\nThe thing is I'd like to \"decouple\" my alert html code to something like:\r\n> `@include_block('partials.alerts.info')`\r\n> `... html code ...`\r\n> `@stop`\r\n\r\n.... where partials.alert.info.blade.php should be like:\r\n> `<div class=\"alert alert-info\" role=\"alert\">`\r\n> `{{ $html }}`\r\n> `</div>`\r\n\r\nYes, I'd like that Laravel be able to \"send\" some random html block to a $html variable I use in given view. Something like a section... you get the idea.\r\n\r\nBut that's not possible now!\r\n\r\nHow I do things now:\r\n> `@include('partials.info.header')`\r\n> `... html code ...`\r\n> `@include('partials.info.footer')`\r\n\r\nOf course, this is a nasty, suboptimal way of doing things.\r\n\r\nPS: I know I can send variables to `@include` but I don't like that, because my alerts get very often \"messy\" and complex, with many html code lines."}}