{"action":"created","comment":{"url":"https://api.github.com/repos/algolia/places/pulls/comments/228138734","pull_request_review_id":168336801,"id":228138734,"node_id":"MDI0OlB1bGxSZXF1ZXN0UmV2aWV3Q29tbWVudDIyODEzODczNA==","diff_hunk":"@@ -68,54 +60,115 @@ Then use this:\n <%= partial '/partials/examples/map', locals: config[:credentials][:placeholder] %>\n ```\n \n-## Force lat, lng, radius\n+### Templates\n \n-Reusing the [map](#link-to-a-map) example, we want to only search around Paris, France.\n+**Warning:** This is an advanced feature. \n \n-This is useful when you really want to display results around a specific area.\n+Although Places.js comes with a good default template that should fit most use cases, you may want to customize both the input value and dropdown suggestion templates to better fit your needs.\n \n-<%= partial '/partials/examples/map_paris', locals: config[:credentials][:documentation] %>\n+In order to help you modify the rendered values for both objects, Places exposes a [templates option](documentation.html#api-options-templates) that can be configured for both the `value` and `suggestion` components.\n \n-To try this example, you need to add leaflet in your code:\n+Templates are functions called with a [suggestion object](./documentation.html#suggestions).\n+\n+<%= partial '/partials/examples/templates', locals: config[:credentials][:documentation] %>\n \n ```html\n-<link rel=\"stylesheet\" href=\"https://cdn.jsdelivr.net/leaflet/1/leaflet.css\" />\n-<script src=\"https://cdn.jsdelivr.net/leaflet/1/leaflet.js\"></script>\n+<%= partial '/partials/examples/templates', locals: config[:credentials][:placeholder] %>\n ```\n \n-Then use this:\n+### Disable styling\n+\n+**Warning:** This is an advanced feature.","path":"docs/source/examples.html.md.erb","position":95,"original_position":95,"commit_id":"72dbd291d7a11253fd1efab367ad9d399349daef","original_commit_id":"72dbd291d7a11253fd1efab367ad9d399349daef","user":{"login":"raphi","id":783964,"node_id":"MDQ6VXNlcjc4Mzk2NA==","avatar_url":"https://avatars3.githubusercontent.com/u/783964?v=4","gravatar_id":"","url":"https://api.github.com/users/raphi","html_url":"https://github.com/raphi","followers_url":"https://api.github.com/users/raphi/followers","following_url":"https://api.github.com/users/raphi/following{/other_user}","gists_url":"https://api.github.com/users/raphi/gists{/gist_id}","starred_url":"https://api.github.com/users/raphi/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/raphi/subscriptions","organizations_url":"https://api.github.com/users/raphi/orgs","repos_url":"https://api.github.com/users/raphi/repos","events_url":"https://api.github.com/users/raphi/events{/privacy}","received_events_url":"https://api.github.com/users/raphi/received_events","type":"User","site_admin":false},"body":"Let's add a warning about the logo and link to the licenses/policies","created_at":"2018-10-25T11:40:37Z","updated_at":"2018-10-25T11:42:36Z","html_url":"https://github.com/algolia/places/pull/616#discussion_r228138734","pull_request_url":"https://api.github.com/repos/algolia/places/pulls/616","author_association":"COLLABORATOR","_links":{"self":{"href":"https://api.github.com/repos/algolia/places/pulls/comments/228138734"},"html":{"href":"https://github.com/algolia/places/pull/616#discussion_r228138734"},"pull_request":{"href":"https://api.github.com/repos/algolia/places/pulls/616"}}},"pull_request":{"url":"https://api.github.com/repos/algolia/places/pulls/616","id":225439503,"node_id":"MDExOlB1bGxSZXF1ZXN0MjI1NDM5NTAz","html_url":"https://github.com/algolia/places/pull/616","diff_url":"https://github.com/algolia/places/pull/616.diff","patch_url":"https://github.com/algolia/places/pull/616.patch","issue_url":"https://api.github.com/repos/algolia/places/issues/616","number":616,"state":"open","locked":false,"title":"doc(examples): add context and improve examples","user":{"login":"JonathanMontane","id":5136989,"node_id":"MDQ6VXNlcjUxMzY5ODk=","avatar_url":"https://avatars2.githubusercontent.com/u/5136989?v=4","gravatar_id":"","url":"https://api.github.com/users/JonathanMontane","html_url":"https://github.com/JonathanMontane","followers_url":"https://api.github.com/users/JonathanMontane/followers","following_url":"https://api.github.com/users/JonathanMontane/following{/other_user}","gists_url":"https://api.github.com/users/JonathanMontane/gists{/gist_id}","starred_url":"https://api.github.com/users/JonathanMontane/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/JonathanMontane/subscriptions","organizations_url":"https://api.github.com/users/JonathanMontane/orgs","repos_url":"https://api.github.com/users/JonathanMontane/repos","events_url":"https://api.github.com/users/JonathanMontane/events{/privacy}","received_events_url":"https://api.github.com/users/JonathanMontane/received_events","type":"User","site_admin":false},"body":"**⚠️ NOT READY FOR REVIEW ⚠️**\r\n\r\n**Summary**\r\n\r\nThis PR adds some context to the examples in order to clarify the purpose of each example.\r\n\r\nThis will help new users get started more rapidly with Places.js\r\n\r\n**Result**\r\n\r\n<!--\r\n  Demonstrate the code is solid.\r\n  Example: The exact commands you ran and their output,\r\n  screenshots / videos if the pull request changes UI.\r\n-->\r\n","created_at":"2018-10-24T15:00:58Z","updated_at":"2018-10-25T11:42:36Z","closed_at":null,"merged_at":null,"merge_commit_sha":"34249d1fddb226995d21e49bc937c6787eb37b3f","assignee":{"login":"JonathanMontane","id":5136989,"node_id":"MDQ6VXNlcjUxMzY5ODk=","avatar_url":"https://avatars2.githubusercontent.com/u/5136989?v=4","gravatar_id":"","url":"https://api.github.com/users/JonathanMontane","html_url":"https://github.com/JonathanMontane","followers_url":"https://api.github.com/users/JonathanMontane/followers","following_url":"https://api.github.com/users/JonathanMontane/following{/other_user}","gists_url":"https://api.github.com/users/JonathanMontane/gists{/gist_id}","starred_url":"https://api.github.com/users/JonathanMontane/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/JonathanMontane/subscriptions","organizations_url":"https://api.github.com/users/JonathanMontane/orgs","repos_url":"https://api.github.com/users/JonathanMontane/repos","events_url":"https://api.github.com/users/JonathanMontane/events{/privacy}","received_events_url":"https://api.github.com/users/JonathanMontane/received_events","type":"User","site_admin":false},"assignees":[{"login":"JonathanMontane","id":5136989,"node_id":"MDQ6VXNlcjUxMzY5ODk=","avatar_url":"https://avatars2.githubusercontent.com/u/5136989?v=4","gravatar_id":"","url":"https://api.github.com/users/JonathanMontane","html_url":"https://github.com/JonathanMontane","followers_url":"https://api.github.com/users/JonathanMontane/followers","following_url":"https://api.github.com/users/JonathanMontane/following{/other_user}","gists_url":"https://api.github.com/users/JonathanMontane/gists{/gist_id}","starred_url":"https://api.github.com/users/JonathanMontane/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/JonathanMontane/subscriptions","organizations_url":"https://api.github.com/users/JonathanMontane/orgs","repos_url":"https://api.github.com/users/JonathanMontane/repos","events_url":"https://api.github.com/users/JonathanMontane/events{/privacy}","received_events_url":"https://api.github.com/users/JonathanMontane/received_events","type":"User","site_admin":false}],"requested_reviewers":[],"requested_teams":[],"labels":[{"id":350443663,"node_id":"MDU6TGFiZWwzNTA0NDM2NjM=","url":"https://api.github.com/repos/algolia/places/labels/do%20not%20merge","name":"do not merge","color":"000000","default":false}],"milestone":null,"commits_url":"https://api.github.com/repos/algolia/places/pulls/616/commits","review_comments_url":"https://api.github.com/repos/algolia/places/pulls/616/comments","review_comment_url":"https://api.github.com/repos/algolia/places/pulls/comments{/number}","comments_url":"https://api.github.com/repos/algolia/places/issues/616/comments","statuses_url":"https://api.github.com/repos/algolia/places/statuses/72dbd291d7a11253fd1efab367ad9d399349daef","head":{"label":"algolia:doc/better-examples","ref":"doc/better-examples","sha":"72dbd291d7a11253fd1efab367ad9d399349daef","user":{"login":"algolia","id":2034458,"node_id":"MDEyOk9yZ2FuaXphdGlvbjIwMzQ0NTg=","avatar_url":"https://avatars0.githubusercontent.com/u/2034458?v=4","gravatar_id":"","url":"https://api.github.com/users/algolia","html_url":"https://github.com/algolia","followers_url":"https://api.github.com/users/algolia/followers","following_url":"https://api.github.com/users/algolia/following{/other_user}","gists_url":"https://api.github.com/users/algolia/gists{/gist_id}","starred_url":"https://api.github.com/users/algolia/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/algolia/subscriptions","organizations_url":"https://api.github.com/users/algolia/orgs","repos_url":"https://api.github.com/users/algolia/repos","events_url":"https://api.github.com/users/algolia/events{/privacy}","received_events_url":"https://api.github.com/users/algolia/received_events","type":"Organization","site_admin":false},"repo":{"id":54460336,"node_id":"MDEwOlJlcG9zaXRvcnk1NDQ2MDMzNg==","name":"places","full_name":"algolia/places","private":false,"owner":{"login":"algolia","id":2034458,"node_id":"MDEyOk9yZ2FuaXphdGlvbjIwMzQ0NTg=","avatar_url":"https://avatars0.githubusercontent.com/u/2034458?v=4","gravatar_id":"","url":"https://api.github.com/users/algolia","html_url":"https://github.com/algolia","followers_url":"https://api.github.com/users/algolia/followers","following_url":"https://api.github.com/users/algolia/following{/other_user}","gists_url":"https://api.github.com/users/algolia/gists{/gist_id}","starred_url":"https://api.github.com/users/algolia/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/algolia/subscriptions","organizations_url":"https://api.github.com/users/algolia/orgs","repos_url":"https://api.github.com/users/algolia/repos","events_url":"https://api.github.com/users/algolia/events{/privacy}","received_events_url":"https://api.github.com/users/algolia/received_events","type":"Organization","site_admin":false},"html_url":"https://github.com/algolia/places","description":":globe_with_meridians: Turn any <input> into an address autocomplete","fork":false,"url":"https://api.github.com/repos/algolia/places","forks_url":"https://api.github.com/repos/algolia/places/forks","keys_url":"https://api.github.com/repos/algolia/places/keys{/key_id}","collaborators_url":"https://api.github.com/repos/algolia/places/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/algolia/places/teams","hooks_url":"https://api.github.com/repos/algolia/places/hooks","issue_events_url":"https://api.github.com/repos/algolia/places/issues/events{/number}","events_url":"https://api.github.com/repos/algolia/places/events","assignees_url":"https://api.github.com/repos/algolia/places/assignees{/user}","branches_url":"https://api.github.com/repos/algolia/places/branches{/branch}","tags_url":"https://api.github.com/repos/algolia/places/tags","blobs_url":"https://api.github.com/repos/algolia/places/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/algolia/places/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/algolia/places/git/refs{/sha}","trees_url":"https://api.github.com/repos/algolia/places/git/trees{/sha}","statuses_url":"https://api.github.com/repos/algolia/places/statuses/{sha}","languages_url":"https://api.github.com/repos/algolia/places/languages","stargazers_url":"https://api.github.com/repos/algolia/places/stargazers","contributors_url":"https://api.github.com/repos/algolia/places/contributors","subscribers_url":"https://api.github.com/repos/algolia/places/subscribers","subscription_url":"https://api.github.com/repos/algolia/places/subscription","commits_url":"https://api.github.com/repos/algolia/places/commits{/sha}","git_commits_url":"https://api.github.com/repos/algolia/places/git/commits{/sha}","comments_url":"https://api.github.com/repos/algolia/places/comments{/number}","issue_comment_url":"https://api.github.com/repos/algolia/places/issues/comments{/number}","contents_url":"https://api.github.com/repos/algolia/places/contents/{+path}","compare_url":"https://api.github.com/repos/algolia/places/compare/{base}...{head}","merges_url":"https://api.github.com/repos/algolia/places/merges","archive_url":"https://api.github.com/repos/algolia/places/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/algolia/places/downloads","issues_url":"https://api.github.com/repos/algolia/places/issues{/number}","pulls_url":"https://api.github.com/repos/algolia/places/pulls{/number}","milestones_url":"https://api.github.com/repos/algolia/places/milestones{/number}","notifications_url":"https://api.github.com/repos/algolia/places/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/algolia/places/labels{/name}","releases_url":"https://api.github.com/repos/algolia/places/releases{/id}","deployments_url":"https://api.github.com/repos/algolia/places/deployments","created_at":"2016-03-22T09:01:46Z","updated_at":"2018-10-24T14:08:16Z","pushed_at":"2018-10-25T09:57:22Z","git_url":"git://github.com/algolia/places.git","ssh_url":"git@github.com:algolia/places.git","clone_url":"https://github.com/algolia/places.git","svn_url":"https://github.com/algolia/places","homepage":"https://community.algolia.com/places/","size":5566,"stargazers_count":4520,"watchers_count":4520,"language":"JavaScript","has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":false,"has_pages":true,"forks_count":202,"mirror_url":null,"archived":false,"open_issues_count":49,"license":{"key":"mit","name":"MIT License","spdx_id":"MIT","url":"https://api.github.com/licenses/mit","node_id":"MDc6TGljZW5zZTEz"},"forks":202,"open_issues":49,"watchers":4520,"default_branch":"master"}},"base":{"label":"algolia:master","ref":"master","sha":"34af62fb08798500bca175ab4e4c622b95d00567","user":{"login":"algolia","id":2034458,"node_id":"MDEyOk9yZ2FuaXphdGlvbjIwMzQ0NTg=","avatar_url":"https://avatars0.githubusercontent.com/u/2034458?v=4","gravatar_id":"","url":"https://api.github.com/users/algolia","html_url":"https://github.com/algolia","followers_url":"https://api.github.com/users/algolia/followers","following_url":"https://api.github.com/users/algolia/following{/other_user}","gists_url":"https://api.github.com/users/algolia/gists{/gist_id}","starred_url":"https://api.github.com/users/algolia/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/algolia/subscriptions","organizations_url":"https://api.github.com/users/algolia/orgs","repos_url":"https://api.github.com/users/algolia/repos","events_url":"https://api.github.com/users/algolia/events{/privacy}","received_events_url":"https://api.github.com/users/algolia/received_events","type":"Organization","site_admin":false},"repo":{"id":54460336,"node_id":"MDEwOlJlcG9zaXRvcnk1NDQ2MDMzNg==","name":"places","full_name":"algolia/places","private":false,"owner":{"login":"algolia","id":2034458,"node_id":"MDEyOk9yZ2FuaXphdGlvbjIwMzQ0NTg=","avatar_url":"https://avatars0.githubusercontent.com/u/2034458?v=4","gravatar_id":"","url":"https://api.github.com/users/algolia","html_url":"https://github.com/algolia","followers_url":"https://api.github.com/users/algolia/followers","following_url":"https://api.github.com/users/algolia/following{/other_user}","gists_url":"https://api.github.com/users/algolia/gists{/gist_id}","starred_url":"https://api.github.com/users/algolia/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/algolia/subscriptions","organizations_url":"https://api.github.com/users/algolia/orgs","repos_url":"https://api.github.com/users/algolia/repos","events_url":"https://api.github.com/users/algolia/events{/privacy}","received_events_url":"https://api.github.com/users/algolia/received_events","type":"Organization","site_admin":false},"html_url":"https://github.com/algolia/places","description":":globe_with_meridians: Turn any <input> into an address autocomplete","fork":false,"url":"https://api.github.com/repos/algolia/places","forks_url":"https://api.github.com/repos/algolia/places/forks","keys_url":"https://api.github.com/repos/algolia/places/keys{/key_id}","collaborators_url":"https://api.github.com/repos/algolia/places/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/algolia/places/teams","hooks_url":"https://api.github.com/repos/algolia/places/hooks","issue_events_url":"https://api.github.com/repos/algolia/places/issues/events{/number}","events_url":"https://api.github.com/repos/algolia/places/events","assignees_url":"https://api.github.com/repos/algolia/places/assignees{/user}","branches_url":"https://api.github.com/repos/algolia/places/branches{/branch}","tags_url":"https://api.github.com/repos/algolia/places/tags","blobs_url":"https://api.github.com/repos/algolia/places/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/algolia/places/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/algolia/places/git/refs{/sha}","trees_url":"https://api.github.com/repos/algolia/places/git/trees{/sha}","statuses_url":"https://api.github.com/repos/algolia/places/statuses/{sha}","languages_url":"https://api.github.com/repos/algolia/places/languages","stargazers_url":"https://api.github.com/repos/algolia/places/stargazers","contributors_url":"https://api.github.com/repos/algolia/places/contributors","subscribers_url":"https://api.github.com/repos/algolia/places/subscribers","subscription_url":"https://api.github.com/repos/algolia/places/subscription","commits_url":"https://api.github.com/repos/algolia/places/commits{/sha}","git_commits_url":"https://api.github.com/repos/algolia/places/git/commits{/sha}","comments_url":"https://api.github.com/repos/algolia/places/comments{/number}","issue_comment_url":"https://api.github.com/repos/algolia/places/issues/comments{/number}","contents_url":"https://api.github.com/repos/algolia/places/contents/{+path}","compare_url":"https://api.github.com/repos/algolia/places/compare/{base}...{head}","merges_url":"https://api.github.com/repos/algolia/places/merges","archive_url":"https://api.github.com/repos/algolia/places/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/algolia/places/downloads","issues_url":"https://api.github.com/repos/algolia/places/issues{/number}","pulls_url":"https://api.github.com/repos/algolia/places/pulls{/number}","milestones_url":"https://api.github.com/repos/algolia/places/milestones{/number}","notifications_url":"https://api.github.com/repos/algolia/places/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/algolia/places/labels{/name}","releases_url":"https://api.github.com/repos/algolia/places/releases{/id}","deployments_url":"https://api.github.com/repos/algolia/places/deployments","created_at":"2016-03-22T09:01:46Z","updated_at":"2018-10-24T14:08:16Z","pushed_at":"2018-10-25T09:57:22Z","git_url":"git://github.com/algolia/places.git","ssh_url":"git@github.com:algolia/places.git","clone_url":"https://github.com/algolia/places.git","svn_url":"https://github.com/algolia/places","homepage":"https://community.algolia.com/places/","size":5566,"stargazers_count":4520,"watchers_count":4520,"language":"JavaScript","has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":false,"has_pages":true,"forks_count":202,"mirror_url":null,"archived":false,"open_issues_count":49,"license":{"key":"mit","name":"MIT License","spdx_id":"MIT","url":"https://api.github.com/licenses/mit","node_id":"MDc6TGljZW5zZTEz"},"forks":202,"open_issues":49,"watchers":4520,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/algolia/places/pulls/616"},"html":{"href":"https://github.com/algolia/places/pull/616"},"issue":{"href":"https://api.github.com/repos/algolia/places/issues/616"},"comments":{"href":"https://api.github.com/repos/algolia/places/issues/616/comments"},"review_comments":{"href":"https://api.github.com/repos/algolia/places/pulls/616/comments"},"review_comment":{"href":"https://api.github.com/repos/algolia/places/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/algolia/places/pulls/616/commits"},"statuses":{"href":"https://api.github.com/repos/algolia/places/statuses/72dbd291d7a11253fd1efab367ad9d399349daef"}},"author_association":"CONTRIBUTOR"}}
{"actor":{"display_login":"raphi"}}