{"action":"created","issue":{"url":"https://api.github.com/repos/middleman/middleman/issues/1850","repository_url":"https://api.github.com/repos/middleman/middleman","labels_url":"https://api.github.com/repos/middleman/middleman/issues/1850/labels{/name}","comments_url":"https://api.github.com/repos/middleman/middleman/issues/1850/comments","events_url":"https://api.github.com/repos/middleman/middleman/issues/1850/events","html_url":"https://github.com/middleman/middleman/issues/1850","id":142529945,"number":1850,"title":"Split content to inject partial?","user":{"login":"NetOperatorWibby","id":1288356,"avatar_url":"https://avatars.githubusercontent.com/u/1288356?v=3","gravatar_id":"","url":"https://api.github.com/users/NetOperatorWibby","html_url":"https://github.com/NetOperatorWibby","followers_url":"https://api.github.com/users/NetOperatorWibby/followers","following_url":"https://api.github.com/users/NetOperatorWibby/following{/other_user}","gists_url":"https://api.github.com/users/NetOperatorWibby/gists{/gist_id}","starred_url":"https://api.github.com/users/NetOperatorWibby/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/NetOperatorWibby/subscriptions","organizations_url":"https://api.github.com/users/NetOperatorWibby/orgs","repos_url":"https://api.github.com/users/NetOperatorWibby/repos","events_url":"https://api.github.com/users/NetOperatorWibby/events{/privacy}","received_events_url":"https://api.github.com/users/NetOperatorWibby/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":6,"created_at":"2016-03-22T02:45:50Z","updated_at":"2016-03-22T19:28:30Z","closed_at":null,"body":"Hi everyone!\r\n\r\nAfter realizing today that Jekyll 3 broke my category plugins (and removed the built-in category functionality), I decided to try out Middleman. So far so good. Anyhoo, I have some code in my Jekyll site that looks for a string to text to then replace with HTML. Here's the relevant snippet:\r\n\r\n```\r\n<main class=\"main\">\r\n  {% if content contains \"<!--/ ad /-->\" %}\r\n    {{ content | split:\"<!--/ ad /-->\" | first % }}\r\n      {% include ad.html %}\r\n    {{ content | split:\"<!--/ ad /-->\" | last % }}\r\n  {% else %}\r\n    {{ content }}\r\n  {% endif %}\r\n</main>\r\n```\r\n\r\nI was wondering if it is at all possible to do the same thing in Middleman."},"comment":{"url":"https://api.github.com/repos/middleman/middleman/issues/comments/199976253","html_url":"https://github.com/middleman/middleman/issues/1850#issuecomment-199976253","issue_url":"https://api.github.com/repos/middleman/middleman/issues/1850","id":199976253,"user":{"login":"NetOperatorWibby","id":1288356,"avatar_url":"https://avatars.githubusercontent.com/u/1288356?v=3","gravatar_id":"","url":"https://api.github.com/users/NetOperatorWibby","html_url":"https://github.com/NetOperatorWibby","followers_url":"https://api.github.com/users/NetOperatorWibby/followers","following_url":"https://api.github.com/users/NetOperatorWibby/following{/other_user}","gists_url":"https://api.github.com/users/NetOperatorWibby/gists{/gist_id}","starred_url":"https://api.github.com/users/NetOperatorWibby/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/NetOperatorWibby/subscriptions","organizations_url":"https://api.github.com/users/NetOperatorWibby/orgs","repos_url":"https://api.github.com/users/NetOperatorWibby/repos","events_url":"https://api.github.com/users/NetOperatorWibby/events{/privacy}","received_events_url":"https://api.github.com/users/NetOperatorWibby/received_events","type":"User","site_admin":false},"created_at":"2016-03-22T19:28:30Z","updated_at":"2016-03-22T19:28:30Z","body":"I feel like you're speaking in riddles and it's making me more confused.\r\n\r\nI'm pretty sure I have to wrap `content = yield` in something, but I don't know what, nor where. Does it go in the same layout file, or somewhere else entirely? Do I keep my default ` <%= yield %>` line, or do away with it?"}}