{"action":"created","issue":{"url":"https://api.github.com/repos/edx/edx-documentation/issues/913","repository_url":"https://api.github.com/repos/edx/edx-documentation","labels_url":"https://api.github.com/repos/edx/edx-documentation/issues/913/labels{/name}","comments_url":"https://api.github.com/repos/edx/edx-documentation/issues/913/comments","events_url":"https://api.github.com/repos/edx/edx-documentation/issues/913/events","html_url":"https://github.com/edx/edx-documentation/pull/913","id":140484782,"number":913,"title":"Restructure safe template doc","user":{"login":"robrap","id":14576445,"avatar_url":"https://avatars.githubusercontent.com/u/14576445?v=3","gravatar_id":"","url":"https://api.github.com/users/robrap","html_url":"https://github.com/robrap","followers_url":"https://api.github.com/users/robrap/followers","following_url":"https://api.github.com/users/robrap/following{/other_user}","gists_url":"https://api.github.com/users/robrap/gists{/gist_id}","starred_url":"https://api.github.com/users/robrap/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/robrap/subscriptions","organizations_url":"https://api.github.com/users/robrap/orgs","repos_url":"https://api.github.com/users/robrap/repos","events_url":"https://api.github.com/users/robrap/events{/privacy}","received_events_url":"https://api.github.com/users/robrap/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":7,"created_at":"2016-03-13T13:16:43Z","updated_at":"2016-03-25T20:10:50Z","closed_at":null,"pull_request":{"url":"https://api.github.com/repos/edx/edx-documentation/pulls/913","html_url":"https://github.com/edx/edx-documentation/pull/913","diff_url":"https://github.com/edx/edx-documentation/pull/913.diff","patch_url":"https://github.com/edx/edx-documentation/pull/913.patch"},"body":"I've done some restructuring to the document to try to make it simpler to find the section required for Mako templates.  When the Linter documentation is added, this will make it simpler to add references as well.\r\n\r\nThis PR now incorporates all remaining documentation requests from the Safe Template Marathon as well.\r\n\r\nFYI: @catong @nedbat @cahrens "},"comment":{"url":"https://api.github.com/repos/edx/edx-documentation/issues/comments/201470599","html_url":"https://github.com/edx/edx-documentation/pull/913#issuecomment-201470599","issue_url":"https://api.github.com/repos/edx/edx-documentation/issues/913","id":201470599,"user":{"login":"robrap","id":14576445,"avatar_url":"https://avatars.githubusercontent.com/u/14576445?v=3","gravatar_id":"","url":"https://api.github.com/users/robrap","html_url":"https://github.com/robrap","followers_url":"https://api.github.com/users/robrap/followers","following_url":"https://api.github.com/users/robrap/following{/other_user}","gists_url":"https://api.github.com/users/robrap/gists{/gist_id}","starred_url":"https://api.github.com/users/robrap/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/robrap/subscriptions","organizations_url":"https://api.github.com/users/robrap/orgs","repos_url":"https://api.github.com/users/robrap/repos","events_url":"https://api.github.com/users/robrap/events{/privacy}","received_events_url":"https://api.github.com/users/robrap/received_events","type":"User","site_admin":false},"created_at":"2016-03-25T20:10:50Z","updated_at":"2016-03-25T20:10:50Z","body":"@catong @andy-armstrong There are updates in this page that need to be carried into the i18n page.  Specifically how does one deal with plain text interpolation and mixed interpolation (plain text and HTML) in JavaScript, CoffeeScript and Underscore Template Files.\r\n\r\nThe examples in the safe template file correctly use HtmlUtils.  The i18n page will need to be updated to match, rather than using `_.escape()` or `_.template()` or `interpolate()` as the current examples do.\r\n\r\nAlso, @andy-armstrong, once you have the code for getting at HtmlUtils in the platform, can you help update these docs or examples?\r\n\r\nThank you."}}