{"action":"created","issue":{"url":"https://api.github.com/repos/algolia/instantsearch.js/issues/143","labels_url":"https://api.github.com/repos/algolia/instantsearch.js/issues/143/labels{/name}","comments_url":"https://api.github.com/repos/algolia/instantsearch.js/issues/143/comments","events_url":"https://api.github.com/repos/algolia/instantsearch.js/issues/143/events","html_url":"https://github.com/algolia/instantsearch.js/issues/143","id":108840864,"number":143,"title":"API proposal : let the user pass a reference to a file for templating","user":{"login":"bobylito","id":393765,"avatar_url":"https://avatars.githubusercontent.com/u/393765?v=3","gravatar_id":"","url":"https://api.github.com/users/bobylito","html_url":"https://github.com/bobylito","followers_url":"https://api.github.com/users/bobylito/followers","following_url":"https://api.github.com/users/bobylito/following{/other_user}","gists_url":"https://api.github.com/users/bobylito/gists{/gist_id}","starred_url":"https://api.github.com/users/bobylito/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/bobylito/subscriptions","organizations_url":"https://api.github.com/users/bobylito/orgs","repos_url":"https://api.github.com/users/bobylito/repos","events_url":"https://api.github.com/users/bobylito/events{/privacy}","received_events_url":"https://api.github.com/users/bobylito/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":2,"created_at":"2015-09-29T10:28:33Z","updated_at":"2015-09-29T10:50:38Z","closed_at":null,"body":"In order to make templating very easy and well done, we could provide a way to load the template from a URL. The code could look like : \r\n\r\n```js\r\nvar template = InstantSearch.templateLoader;\r\n\r\nsearch.addWidget(instantsearch.widgets.hits({\r\n    container: '#hits',\r\n    templates: {\r\n      empty: 'No results',\r\n      hit: template('./templates/hit.html')\r\n    },\r\n    hitsPerPage: 6\r\n}));\r\n```"},"comment":{"url":"https://api.github.com/repos/algolia/instantsearch.js/issues/comments/144025513","html_url":"https://github.com/algolia/instantsearch.js/issues/143#issuecomment-144025513","issue_url":"https://api.github.com/repos/algolia/instantsearch.js/issues/143","id":144025513,"user":{"login":"bobylito","id":393765,"avatar_url":"https://avatars.githubusercontent.com/u/393765?v=3","gravatar_id":"","url":"https://api.github.com/users/bobylito","html_url":"https://github.com/bobylito","followers_url":"https://api.github.com/users/bobylito/followers","following_url":"https://api.github.com/users/bobylito/following{/other_user}","gists_url":"https://api.github.com/users/bobylito/gists{/gist_id}","starred_url":"https://api.github.com/users/bobylito/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/bobylito/subscriptions","organizations_url":"https://api.github.com/users/bobylito/orgs","repos_url":"https://api.github.com/users/bobylito/repos","events_url":"https://api.github.com/users/bobylito/events{/privacy}","received_events_url":"https://api.github.com/users/bobylito/received_events","type":"User","site_admin":false},"created_at":"2015-09-29T10:50:38Z","updated_at":"2015-09-29T10:50:38Z","body":"Short answering no :). But it is both useful, and would let the user start nicely (using operated files for template) and right away."}}