{"action":"reopened","issue":{"url":"https://api.github.com/repos/lotus/lotus/issues/400","labels_url":"https://api.github.com/repos/lotus/lotus/issues/400/labels{/name}","comments_url":"https://api.github.com/repos/lotus/lotus/issues/400/comments","events_url":"https://api.github.com/repos/lotus/lotus/issues/400/events","html_url":"https://github.com/lotus/lotus/issues/400","id":119066119,"number":400,"title":"Favicon helper","user":{"login":"jodosha","id":5089,"avatar_url":"https://avatars.githubusercontent.com/u/5089?v=3","gravatar_id":"","url":"https://api.github.com/users/jodosha","html_url":"https://github.com/jodosha","followers_url":"https://api.github.com/users/jodosha/followers","following_url":"https://api.github.com/users/jodosha/following{/other_user}","gists_url":"https://api.github.com/users/jodosha/gists{/gist_id}","starred_url":"https://api.github.com/users/jodosha/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jodosha/subscriptions","organizations_url":"https://api.github.com/users/jodosha/orgs","repos_url":"https://api.github.com/users/jodosha/repos","events_url":"https://api.github.com/users/jodosha/events{/privacy}","received_events_url":"https://api.github.com/users/jodosha/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/lotus/lotus/labels/feature","name":"feature","color":"bfe5bf"},{"url":"https://api.github.com/repos/lotus/lotus/labels/help-wanted","name":"help-wanted","color":"009800"}],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":8,"created_at":"2015-11-26T15:36:36Z","updated_at":"2015-12-02T21:57:19Z","closed_at":null,"body":"Implement `favicon` helper.\r\n\r\nSee `Lotus::Assets::Helpers` for reference.\r\n\r\n## Usage\r\n\r\n### Basic Usage\r\n\r\n```erb\r\n<%= favicon %>\r\n```\r\n\r\n```html\r\n<link href=\"/assets/favicon.ico\" rel=\"shortcut icon\" type=\"image/x-icon\">\r\n```\r\n\r\n### Path\r\n\r\nIt also accepts an optional path\r\n\r\n```erb\r\n<%= favicon 'myfavicon.ico' %>\r\n```\r\n\r\n```html\r\n<link href=\"/assets/myfavicon.ico\" rel=\"shortcut icon\" type=\"image/x-icon\">\r\n```\r\n\r\n### URL Prefix\r\n\r\nThis should take account of the [`prefix`](https://github.com/lotus/assets/blob/master/lib/lotus/assets/configuration.rb#L45) defined in `Lotus::Assets::Configuration`.\r\n\r\nThat means, if an application has a prefix: `/admin`, when one this helper is used, the prefix should be used.\r\n\r\n```erb\r\n<%= favicon %>\r\n```\r\n\r\n```html\r\n<link href=\"/assets/admin/favicon.ico\" rel=\"shortcut icon\" type=\"image/x-icon\">\r\n```\r\n\r\n### Digest Mode\r\n\r\nIf \"Digest Mode\" is enabled (usually in production), it should generate the file name with the digest suffix (see https://github.com/lotus/assets/blob/master/lib/lotus/assets/configuration.rb#L37).\r\n\r\n```erb\r\n<%= favicon %>\r\n```\r\n\r\n```html\r\n<link href=\"/assets/favicon-78a21a377046e9ddb3bd9b509c22d4c3.ico\" rel=\"shortcut icon\" type=\"image/x-icon\">\r\n```\r\n\r\n## Testing Notes\r\n\r\nAdd an integration test with Lotus::View, in order to make sure that the output isn't escaped twice and produces a valid HTML."}}