{"action":"created","issue":{"url":"https://api.github.com/repos/ractivejs/ractive/issues/1675","labels_url":"https://api.github.com/repos/ractivejs/ractive/issues/1675/labels{/name}","comments_url":"https://api.github.com/repos/ractivejs/ractive/issues/1675/comments","events_url":"https://api.github.com/repos/ractivejs/ractive/issues/1675/events","html_url":"https://github.com/ractivejs/ractive/issues/1675","id":56127477,"number":1675,"title":"Preserve HTML comment tag on template processing for development env","user":{"login":"kurdin","id":6027060,"avatar_url":"https://avatars.githubusercontent.com/u/6027060?v=3","gravatar_id":"","url":"https://api.github.com/users/kurdin","html_url":"https://github.com/kurdin","followers_url":"https://api.github.com/users/kurdin/followers","following_url":"https://api.github.com/users/kurdin/following{/other_user}","gists_url":"https://api.github.com/users/kurdin/gists{/gist_id}","starred_url":"https://api.github.com/users/kurdin/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/kurdin/subscriptions","organizations_url":"https://api.github.com/users/kurdin/orgs","repos_url":"https://api.github.com/users/kurdin/repos","events_url":"https://api.github.com/users/kurdin/events{/privacy}","received_events_url":"https://api.github.com/users/kurdin/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":2,"created_at":"2015-01-31T14:59:38Z","updated_at":"2015-01-31T15:10:09Z","closed_at":"2015-01-31T15:10:09Z","body":"It would be nice to have an option to keep HTML comment tags while compiling templates from Mustache, at least for development and remove it on production. It would help to identify templates and partial that has been used for final html rendering. \r\n\r\nlet say I have html comments in my template's file:\r\n````html\r\n<!-- Template ./templates/index.html -->\r\n<div class=\"tray\">\r\n  {{ > main_content }}\r\n</div>\r\n<!--/ Template ./templates/index.html -->\r\n````\r\nand another template file:\r\n````html\r\n<!-- Template ./templates/main_content.html -->\r\n  <main class=\"tray__content\">\r\n    {{ i18n.t('hello', {name: user.name}) }}\r\n    <p>Lang is: {{ lang }}</p>\r\n  </main>\r\n<!--/ Template ./templates/main_content.html -->\r\n````\r\nI want to keep those comments in final HTML rendered by ractive, so I can explore DOM with Dev Tools and see what templates/partial file has been used for generated HTML. \r\n\r\nFor production, I would like to remove all comment tags. \r\n"},"comment":{"url":"https://api.github.com/repos/ractivejs/ractive/issues/comments/72321297","html_url":"https://github.com/ractivejs/ractive/issues/1675#issuecomment-72321297","issue_url":"https://api.github.com/repos/ractivejs/ractive/issues/1675","id":72321297,"user":{"login":"kurdin","id":6027060,"avatar_url":"https://avatars.githubusercontent.com/u/6027060?v=3","gravatar_id":"","url":"https://api.github.com/users/kurdin","html_url":"https://github.com/kurdin","followers_url":"https://api.github.com/users/kurdin/followers","following_url":"https://api.github.com/users/kurdin/following{/other_user}","gists_url":"https://api.github.com/users/kurdin/gists{/gist_id}","starred_url":"https://api.github.com/users/kurdin/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/kurdin/subscriptions","organizations_url":"https://api.github.com/users/kurdin/orgs","repos_url":"https://api.github.com/users/kurdin/repos","events_url":"https://api.github.com/users/kurdin/events{/privacy}","received_events_url":"https://api.github.com/users/kurdin/received_events","type":"User","site_admin":false},"created_at":"2015-01-31T15:10:09Z","updated_at":"2015-01-31T15:10:09Z","body":"Sorry I could not find it in docs, I was looking in [Mustaches](http://docs.ractivejs.org/latest/mustaches) could you please add ``stripComments`` explanation in ``Comments`` section on http://docs.ractivejs.org/latest/mustaches\r\n\r\n@MartinKolarik. Thank you very much! "}}