{"action":"created","issue":{"url":"https://api.github.com/repos/guardian/frontend/issues/14236","repository_url":"https://api.github.com/repos/guardian/frontend","labels_url":"https://api.github.com/repos/guardian/frontend/issues/14236/labels{/name}","comments_url":"https://api.github.com/repos/guardian/frontend/issues/14236/comments","events_url":"https://api.github.com/repos/guardian/frontend/issues/14236/events","html_url":"https://github.com/guardian/frontend/pull/14236","id":175741944,"number":14236,"title":"Render fronts as email-friendly HTML","user":{"login":"joelochlann","id":5122968,"avatar_url":"https://avatars.githubusercontent.com/u/5122968?v=3","gravatar_id":"","url":"https://api.github.com/users/joelochlann","html_url":"https://github.com/joelochlann","followers_url":"https://api.github.com/users/joelochlann/followers","following_url":"https://api.github.com/users/joelochlann/following{/other_user}","gists_url":"https://api.github.com/users/joelochlann/gists{/gist_id}","starred_url":"https://api.github.com/users/joelochlann/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/joelochlann/subscriptions","organizations_url":"https://api.github.com/users/joelochlann/orgs","repos_url":"https://api.github.com/users/joelochlann/repos","events_url":"https://api.github.com/users/joelochlann/events{/privacy}","received_events_url":"https://api.github.com/users/joelochlann/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":6,"created_at":"2016-09-08T12:34:24Z","updated_at":"2016-09-08T13:38:12Z","closed_at":null,"pull_request":{"url":"https://api.github.com/repos/guardian/frontend/pulls/14236","html_url":"https://github.com/guardian/frontend/pull/14236","diff_url":"https://github.com/guardian/frontend/pull/14236.diff","patch_url":"https://github.com/guardian/frontend/pull/14236.patch"},"body":"## What does this change?\r\nExtends @desbo's work on rendering articles with email-friendly HTML, which began in #11673. Now fronts can also be rendered as emails with either the `/email` slug or `?format=email` parameter. e.g. http://www.theguardian.com/politics?format=email\r\n\r\n## What is the value of this and can you measure success?\r\nCurrently, emails which consist mainly of links (\"email collections\") are generated by the [gu-email-renderer](https://github.com/guardian/gu-email-renderer). This has two main limitations:\r\n- Emails are rendered in an old R2 design\r\n- Changes to the structure & contents of certain emails require developer involvement\r\n\r\nRendering fronts as emails gives us an opportunity to reskin our link-based emails while also giving control back to editorial via the fronts tool. Editorial staff can now apply all the flexibility of fronts to emails, including:\r\n- Determine what sections appear in an email\r\n- Choose specific articles to appear in those sections\r\n- Autopopulate sections with CAPI queries (via backfill)\r\n- Override kickers, headlines, trail text etc if desired\r\n- Choose external links to populate certain sections\r\n- Add custom text to the top of the email\r\n- etc...\r\n\r\nThe metrics that we're hoping to ultimately influence with all this control are:\r\n- Click-To-Open rate of our link-based emails (proportion of people that read an email who click on at least one link in it)\r\n- therefore web traffic from email products\r\n- ...therefore visit frequency for non-regulars\r\n\r\n\r\n## Does this affect other platforms - Amp, Apps, etc?\r\nJust web\r\n\r\n## Screenshots\r\n### The front\r\n![screencapture-m-thegulocal-email-the-flyer-1473337874565](https://cloud.githubusercontent.com/assets/5122968/18349310/a4041224-75c8-11e6-9e7c-7229ecebbb55.png)\r\n\r\n### The email\r\n![screencapture-m-thegulocal-email-the-flyer-1473337825739](https://cloud.githubusercontent.com/assets/5122968/18349307/a2b38eae-75c8-11e6-926a-0549c9b6c6f1.png)\r\n\r\n## Request for comment\r\n@desbo @katebee \r\n\r\n<!--\r\n*Does this PR meet the [contributing guidelines](https://github.com/guardian/frontend/blob/issue_pr_templates/.github/CONTRIBUTING.md#submission)?*\r\n-->\r\n\r\n"},"comment":{"url":"https://api.github.com/repos/guardian/frontend/issues/comments/245599735","html_url":"https://github.com/guardian/frontend/pull/14236#issuecomment-245599735","issue_url":"https://api.github.com/repos/guardian/frontend/issues/14236","id":245599735,"user":{"login":"joelochlann","id":5122968,"avatar_url":"https://avatars.githubusercontent.com/u/5122968?v=3","gravatar_id":"","url":"https://api.github.com/users/joelochlann","html_url":"https://github.com/joelochlann","followers_url":"https://api.github.com/users/joelochlann/followers","following_url":"https://api.github.com/users/joelochlann/following{/other_user}","gists_url":"https://api.github.com/users/joelochlann/gists{/gist_id}","starred_url":"https://api.github.com/users/joelochlann/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/joelochlann/subscriptions","organizations_url":"https://api.github.com/users/joelochlann/orgs","repos_url":"https://api.github.com/users/joelochlann/repos","events_url":"https://api.github.com/users/joelochlann/events{/privacy}","received_events_url":"https://api.github.com/users/joelochlann/received_events","type":"User","site_admin":false},"created_at":"2016-09-08T13:38:12Z","updated_at":"2016-09-08T13:38:12Z","body":"@crifmulholland snap! (crossed comments there). and thanks, hope this will be useful!"}}
{"actor":{"display_login":"joelochlann"}}