{"action":"created","comment":{"url":"https://api.github.com/repos/drjova/invenio-search-js/pulls/comments/63482508","id":63482508,"diff_hunk":"@@ -41,6 +43,13 @@\n             <invenio-search search-endpoint=\"http://localhost:5000/api/records/\">\n               <div class=\"row\">\n                 <div class=\"col-md-3\">\n+                  <invenio-search-range\n+                   template=\"/src/invenio-search-js/templates/range.html\"\n+                   histogramid=\"#year_hist\"","path":"example/index.html","position":15,"original_position":15,"commit_id":"3bd32ac950b57150cf08d0cc83a7ac7fffbb3051","original_commit_id":"3bd32ac950b57150cf08d0cc83a7ac7fffbb3051","user":{"login":"drjova","id":4287772,"avatar_url":"https://avatars.githubusercontent.com/u/4287772?v=3","gravatar_id":"","url":"https://api.github.com/users/drjova","html_url":"https://github.com/drjova","followers_url":"https://api.github.com/users/drjova/followers","following_url":"https://api.github.com/users/drjova/following{/other_user}","gists_url":"https://api.github.com/users/drjova/gists{/gist_id}","starred_url":"https://api.github.com/users/drjova/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/drjova/subscriptions","organizations_url":"https://api.github.com/users/drjova/orgs","repos_url":"https://api.github.com/users/drjova/repos","events_url":"https://api.github.com/users/drjova/events{/privacy}","received_events_url":"https://api.github.com/users/drjova/received_events","type":"User","site_admin":false},"body":"can we pass all options as `JSON`? i.e.\r\n\r\n```html\r\n<invenio-search-range\r\n  template=\"/src/invenio-search-js/templates/range.html\"\r\n  options='{\"histogramID\": \"#year_hist\", \"width\": \"180\"}'\r\n></invenio-search-range>\r\n```\r\nis pretty handy for passing options with a Jinja ``config`` variable","created_at":"2016-05-17T08:28:19Z","updated_at":"2016-05-17T08:28:19Z","html_url":"https://github.com/drjova/invenio-search-js/pull/7#discussion_r63482508","pull_request_url":"https://api.github.com/repos/drjova/invenio-search-js/pulls/7","_links":{"self":{"href":"https://api.github.com/repos/drjova/invenio-search-js/pulls/comments/63482508"},"html":{"href":"https://github.com/drjova/invenio-search-js/pull/7#discussion_r63482508"},"pull_request":{"href":"https://api.github.com/repos/drjova/invenio-search-js/pulls/7"}}},"pull_request":{"url":"https://api.github.com/repos/drjova/invenio-search-js/pulls/7","id":69680265,"html_url":"https://github.com/drjova/invenio-search-js/pull/7","diff_url":"https://github.com/drjova/invenio-search-js/pull/7.diff","patch_url":"https://github.com/drjova/invenio-search-js/pull/7.patch","issue_url":"https://api.github.com/repos/drjova/invenio-search-js/issues/7","number":7,"state":"open","locked":false,"title":"directive: number range selection directive addition","user":{"login":"nikofil","id":5767669,"avatar_url":"https://avatars.githubusercontent.com/u/5767669?v=3","gravatar_id":"","url":"https://api.github.com/users/nikofil","html_url":"https://github.com/nikofil","followers_url":"https://api.github.com/users/nikofil/followers","following_url":"https://api.github.com/users/nikofil/following{/other_user}","gists_url":"https://api.github.com/users/nikofil/gists{/gist_id}","starred_url":"https://api.github.com/users/nikofil/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/nikofil/subscriptions","organizations_url":"https://api.github.com/users/nikofil/orgs","repos_url":"https://api.github.com/users/nikofil/repos","events_url":"https://api.github.com/users/nikofil/events{/privacy}","received_events_url":"https://api.github.com/users/nikofil/received_events","type":"User","site_admin":false},"body":"* NEW Adds a directive for filtering according to a range of numbers.","created_at":"2016-05-11T14:19:19Z","updated_at":"2016-05-17T08:28:19Z","closed_at":null,"merged_at":null,"merge_commit_sha":"92f9e481cb23c26c7338bb0c00f5475627da2157","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/drjova/invenio-search-js/pulls/7/commits","review_comments_url":"https://api.github.com/repos/drjova/invenio-search-js/pulls/7/comments","review_comment_url":"https://api.github.com/repos/drjova/invenio-search-js/pulls/comments{/number}","comments_url":"https://api.github.com/repos/drjova/invenio-search-js/issues/7/comments","statuses_url":"https://api.github.com/repos/drjova/invenio-search-js/statuses/3bd32ac950b57150cf08d0cc83a7ac7fffbb3051","head":{"label":"nikofil:master","ref":"master","sha":"3bd32ac950b57150cf08d0cc83a7ac7fffbb3051","user":{"login":"nikofil","id":5767669,"avatar_url":"https://avatars.githubusercontent.com/u/5767669?v=3","gravatar_id":"","url":"https://api.github.com/users/nikofil","html_url":"https://github.com/nikofil","followers_url":"https://api.github.com/users/nikofil/followers","following_url":"https://api.github.com/users/nikofil/following{/other_user}","gists_url":"https://api.github.com/users/nikofil/gists{/gist_id}","starred_url":"https://api.github.com/users/nikofil/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/nikofil/subscriptions","organizations_url":"https://api.github.com/users/nikofil/orgs","repos_url":"https://api.github.com/users/nikofil/repos","events_url":"https://api.github.com/users/nikofil/events{/privacy}","received_events_url":"https://api.github.com/users/nikofil/received_events","type":"User","site_admin":false},"repo":{"id":58439204,"name":"invenio-search-js","full_name":"nikofil/invenio-search-js","owner":{"login":"nikofil","id":5767669,"avatar_url":"https://avatars.githubusercontent.com/u/5767669?v=3","gravatar_id":"","url":"https://api.github.com/users/nikofil","html_url":"https://github.com/nikofil","followers_url":"https://api.github.com/users/nikofil/followers","following_url":"https://api.github.com/users/nikofil/following{/other_user}","gists_url":"https://api.github.com/users/nikofil/gists{/gist_id}","starred_url":"https://api.github.com/users/nikofil/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/nikofil/subscriptions","organizations_url":"https://api.github.com/users/nikofil/orgs","repos_url":"https://api.github.com/users/nikofil/repos","events_url":"https://api.github.com/users/nikofil/events{/privacy}","received_events_url":"https://api.github.com/users/nikofil/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/nikofil/invenio-search-js","description":"Invenio-Search client library for building the web UI.","fork":true,"url":"https://api.github.com/repos/nikofil/invenio-search-js","forks_url":"https://api.github.com/repos/nikofil/invenio-search-js/forks","keys_url":"https://api.github.com/repos/nikofil/invenio-search-js/keys{/key_id}","collaborators_url":"https://api.github.com/repos/nikofil/invenio-search-js/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/nikofil/invenio-search-js/teams","hooks_url":"https://api.github.com/repos/nikofil/invenio-search-js/hooks","issue_events_url":"https://api.github.com/repos/nikofil/invenio-search-js/issues/events{/number}","events_url":"https://api.github.com/repos/nikofil/invenio-search-js/events","assignees_url":"https://api.github.com/repos/nikofil/invenio-search-js/assignees{/user}","branches_url":"https://api.github.com/repos/nikofil/invenio-search-js/branches{/branch}","tags_url":"https://api.github.com/repos/nikofil/invenio-search-js/tags","blobs_url":"https://api.github.com/repos/nikofil/invenio-search-js/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/nikofil/invenio-search-js/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/nikofil/invenio-search-js/git/refs{/sha}","trees_url":"https://api.github.com/repos/nikofil/invenio-search-js/git/trees{/sha}","statuses_url":"https://api.github.com/repos/nikofil/invenio-search-js/statuses/{sha}","languages_url":"https://api.github.com/repos/nikofil/invenio-search-js/languages","stargazers_url":"https://api.github.com/repos/nikofil/invenio-search-js/stargazers","contributors_url":"https://api.github.com/repos/nikofil/invenio-search-js/contributors","subscribers_url":"https://api.github.com/repos/nikofil/invenio-search-js/subscribers","subscription_url":"https://api.github.com/repos/nikofil/invenio-search-js/subscription","commits_url":"https://api.github.com/repos/nikofil/invenio-search-js/commits{/sha}","git_commits_url":"https://api.github.com/repos/nikofil/invenio-search-js/git/commits{/sha}","comments_url":"https://api.github.com/repos/nikofil/invenio-search-js/comments{/number}","issue_comment_url":"https://api.github.com/repos/nikofil/invenio-search-js/issues/comments{/number}","contents_url":"https://api.github.com/repos/nikofil/invenio-search-js/contents/{+path}","compare_url":"https://api.github.com/repos/nikofil/invenio-search-js/compare/{base}...{head}","merges_url":"https://api.github.com/repos/nikofil/invenio-search-js/merges","archive_url":"https://api.github.com/repos/nikofil/invenio-search-js/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/nikofil/invenio-search-js/downloads","issues_url":"https://api.github.com/repos/nikofil/invenio-search-js/issues{/number}","pulls_url":"https://api.github.com/repos/nikofil/invenio-search-js/pulls{/number}","milestones_url":"https://api.github.com/repos/nikofil/invenio-search-js/milestones{/number}","notifications_url":"https://api.github.com/repos/nikofil/invenio-search-js/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/nikofil/invenio-search-js/labels{/name}","releases_url":"https://api.github.com/repos/nikofil/invenio-search-js/releases{/id}","deployments_url":"https://api.github.com/repos/nikofil/invenio-search-js/deployments","created_at":"2016-05-10T07:27:30Z","updated_at":"2016-05-10T07:27:30Z","pushed_at":"2016-05-12T11:58:18Z","git_url":"git://github.com/nikofil/invenio-search-js.git","ssh_url":"git@github.com:nikofil/invenio-search-js.git","clone_url":"https://github.com/nikofil/invenio-search-js.git","svn_url":"https://github.com/nikofil/invenio-search-js","homepage":null,"size":735,"stargazers_count":0,"watchers_count":0,"language":"JavaScript","has_issues":false,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":0,"forks":0,"open_issues":0,"watchers":0,"default_branch":"master"}},"base":{"label":"drjova:master","ref":"master","sha":"ce3bbfeee2e242018ff544d73004cccd5ecccfcf","user":{"login":"drjova","id":4287772,"avatar_url":"https://avatars.githubusercontent.com/u/4287772?v=3","gravatar_id":"","url":"https://api.github.com/users/drjova","html_url":"https://github.com/drjova","followers_url":"https://api.github.com/users/drjova/followers","following_url":"https://api.github.com/users/drjova/following{/other_user}","gists_url":"https://api.github.com/users/drjova/gists{/gist_id}","starred_url":"https://api.github.com/users/drjova/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/drjova/subscriptions","organizations_url":"https://api.github.com/users/drjova/orgs","repos_url":"https://api.github.com/users/drjova/repos","events_url":"https://api.github.com/users/drjova/events{/privacy}","received_events_url":"https://api.github.com/users/drjova/received_events","type":"User","site_admin":false},"repo":{"id":46363515,"name":"invenio-search-js","full_name":"drjova/invenio-search-js","owner":{"login":"drjova","id":4287772,"avatar_url":"https://avatars.githubusercontent.com/u/4287772?v=3","gravatar_id":"","url":"https://api.github.com/users/drjova","html_url":"https://github.com/drjova","followers_url":"https://api.github.com/users/drjova/followers","following_url":"https://api.github.com/users/drjova/following{/other_user}","gists_url":"https://api.github.com/users/drjova/gists{/gist_id}","starred_url":"https://api.github.com/users/drjova/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/drjova/subscriptions","organizations_url":"https://api.github.com/users/drjova/orgs","repos_url":"https://api.github.com/users/drjova/repos","events_url":"https://api.github.com/users/drjova/events{/privacy}","received_events_url":"https://api.github.com/users/drjova/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/drjova/invenio-search-js","description":"Invenio-Search client library for building the web UI.","fork":true,"url":"https://api.github.com/repos/drjova/invenio-search-js","forks_url":"https://api.github.com/repos/drjova/invenio-search-js/forks","keys_url":"https://api.github.com/repos/drjova/invenio-search-js/keys{/key_id}","collaborators_url":"https://api.github.com/repos/drjova/invenio-search-js/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/drjova/invenio-search-js/teams","hooks_url":"https://api.github.com/repos/drjova/invenio-search-js/hooks","issue_events_url":"https://api.github.com/repos/drjova/invenio-search-js/issues/events{/number}","events_url":"https://api.github.com/repos/drjova/invenio-search-js/events","assignees_url":"https://api.github.com/repos/drjova/invenio-search-js/assignees{/user}","branches_url":"https://api.github.com/repos/drjova/invenio-search-js/branches{/branch}","tags_url":"https://api.github.com/repos/drjova/invenio-search-js/tags","blobs_url":"https://api.github.com/repos/drjova/invenio-search-js/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/drjova/invenio-search-js/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/drjova/invenio-search-js/git/refs{/sha}","trees_url":"https://api.github.com/repos/drjova/invenio-search-js/git/trees{/sha}","statuses_url":"https://api.github.com/repos/drjova/invenio-search-js/statuses/{sha}","languages_url":"https://api.github.com/repos/drjova/invenio-search-js/languages","stargazers_url":"https://api.github.com/repos/drjova/invenio-search-js/stargazers","contributors_url":"https://api.github.com/repos/drjova/invenio-search-js/contributors","subscribers_url":"https://api.github.com/repos/drjova/invenio-search-js/subscribers","subscription_url":"https://api.github.com/repos/drjova/invenio-search-js/subscription","commits_url":"https://api.github.com/repos/drjova/invenio-search-js/commits{/sha}","git_commits_url":"https://api.github.com/repos/drjova/invenio-search-js/git/commits{/sha}","comments_url":"https://api.github.com/repos/drjova/invenio-search-js/comments{/number}","issue_comment_url":"https://api.github.com/repos/drjova/invenio-search-js/issues/comments{/number}","contents_url":"https://api.github.com/repos/drjova/invenio-search-js/contents/{+path}","compare_url":"https://api.github.com/repos/drjova/invenio-search-js/compare/{base}...{head}","merges_url":"https://api.github.com/repos/drjova/invenio-search-js/merges","archive_url":"https://api.github.com/repos/drjova/invenio-search-js/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/drjova/invenio-search-js/downloads","issues_url":"https://api.github.com/repos/drjova/invenio-search-js/issues{/number}","pulls_url":"https://api.github.com/repos/drjova/invenio-search-js/pulls{/number}","milestones_url":"https://api.github.com/repos/drjova/invenio-search-js/milestones{/number}","notifications_url":"https://api.github.com/repos/drjova/invenio-search-js/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/drjova/invenio-search-js/labels{/name}","releases_url":"https://api.github.com/repos/drjova/invenio-search-js/releases{/id}","deployments_url":"https://api.github.com/repos/drjova/invenio-search-js/deployments","created_at":"2015-11-17T17:27:53Z","updated_at":"2016-05-12T11:17:28Z","pushed_at":"2016-05-12T11:58:18Z","git_url":"git://github.com/drjova/invenio-search-js.git","ssh_url":"git@github.com:drjova/invenio-search-js.git","clone_url":"https://github.com/drjova/invenio-search-js.git","svn_url":"https://github.com/drjova/invenio-search-js","homepage":null,"size":165,"stargazers_count":0,"watchers_count":0,"language":"JavaScript","has_issues":false,"has_downloads":true,"has_wiki":true,"has_pages":true,"forks_count":0,"mirror_url":null,"open_issues_count":4,"forks":0,"open_issues":4,"watchers":0,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/drjova/invenio-search-js/pulls/7"},"html":{"href":"https://github.com/drjova/invenio-search-js/pull/7"},"issue":{"href":"https://api.github.com/repos/drjova/invenio-search-js/issues/7"},"comments":{"href":"https://api.github.com/repos/drjova/invenio-search-js/issues/7/comments"},"review_comments":{"href":"https://api.github.com/repos/drjova/invenio-search-js/pulls/7/comments"},"review_comment":{"href":"https://api.github.com/repos/drjova/invenio-search-js/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/drjova/invenio-search-js/pulls/7/commits"},"statuses":{"href":"https://api.github.com/repos/drjova/invenio-search-js/statuses/3bd32ac950b57150cf08d0cc83a7ac7fffbb3051"}}}}