{"action":"created","comment":{"url":"https://api.github.com/repos/nteract/vdom/pulls/comments/141429843","pull_request_review_id":65642592,"id":141429843,"diff_hunk":"@@ -0,0 +1,33 @@\n+#!/usr/bin/env python\n+# -*- coding: utf-8 -*-\n+\n+\"\"\"\n+vdom.helpers\n+~~~~~~~~~\n+\n+Little helper functions for (many of) the HTML Elements.\n+\n+from vdom.helpers import div, img\n+\n+div(\n+    img(src=\"http://bit.ly/storybot-vdom\")\n+)\n+\n+\"\"\"\n+\n+from .core import createComponent\n+\n+h1 = createComponent('h1')\n+p = createComponent('p')\n+div = createComponent('div')\n+img = createComponent('img')\n+b = createComponent('b')\n+\n+table = createComponent('table')\n+thead = createComponent('thead')","path":"vdom/helpers.py","position":27,"original_position":27,"commit_id":"e67057247510424c8aff469644d0851071382f83","original_commit_id":"e67057247510424c8aff469644d0851071382f83","user":{"login":"willingc","id":2680980,"avatar_url":"https://avatars3.githubusercontent.com/u/2680980?v=4","gravatar_id":"","url":"https://api.github.com/users/willingc","html_url":"https://github.com/willingc","followers_url":"https://api.github.com/users/willingc/followers","following_url":"https://api.github.com/users/willingc/following{/other_user}","gists_url":"https://api.github.com/users/willingc/gists{/gist_id}","starred_url":"https://api.github.com/users/willingc/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/willingc/subscriptions","organizations_url":"https://api.github.com/users/willingc/orgs","repos_url":"https://api.github.com/users/willingc/repos","events_url":"https://api.github.com/users/willingc/events{/privacy}","received_events_url":"https://api.github.com/users/willingc/received_events","type":"User","site_admin":false},"body":"Perhaps @betatim should review this line :smile:","created_at":"2017-09-27T18:31:10Z","updated_at":"2017-09-27T18:31:10Z","html_url":"https://github.com/nteract/vdom/pull/12#discussion_r141429843","pull_request_url":"https://api.github.com/repos/nteract/vdom/pulls/12","author_association":"OWNER","_links":{"self":{"href":"https://api.github.com/repos/nteract/vdom/pulls/comments/141429843"},"html":{"href":"https://github.com/nteract/vdom/pull/12#discussion_r141429843"},"pull_request":{"href":"https://api.github.com/repos/nteract/vdom/pulls/12"}}},"pull_request":{"url":"https://api.github.com/repos/nteract/vdom/pulls/12","id":143278079,"html_url":"https://github.com/nteract/vdom/pull/12","diff_url":"https://github.com/nteract/vdom/pull/12.diff","patch_url":"https://github.com/nteract/vdom/pull/12.patch","issue_url":"https://api.github.com/repos/nteract/vdom/issues/12","number":12,"state":"open","locked":false,"title":"create a series of helpers","user":{"login":"rgbkrk","id":836375,"avatar_url":"https://avatars0.githubusercontent.com/u/836375?v=4","gravatar_id":"","url":"https://api.github.com/users/rgbkrk","html_url":"https://github.com/rgbkrk","followers_url":"https://api.github.com/users/rgbkrk/followers","following_url":"https://api.github.com/users/rgbkrk/following{/other_user}","gists_url":"https://api.github.com/users/rgbkrk/gists{/gist_id}","starred_url":"https://api.github.com/users/rgbkrk/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/rgbkrk/subscriptions","organizations_url":"https://api.github.com/users/rgbkrk/orgs","repos_url":"https://api.github.com/users/rgbkrk/repos","events_url":"https://api.github.com/users/rgbkrk/events{/privacy}","received_events_url":"https://api.github.com/users/rgbkrk/received_events","type":"User","site_admin":false},"body":"Since I keep creating a bunch of helpers for elements at the top of my notebooks, I'd love to have a way to get at all the elements via `vdom.helpers`\r\n\r\n```python\r\nfrom vdom.helpers import div, img\r\n\r\ndiv(\r\n    img(src=\"http://bit.ly/storybot-vdom\")\r\n)\r\n```\r\n\r\nThis is not an exhaustive collection of HTML Elements, it [_could_ be though if someone wants to make a follow on PR with their favorite HTML elements](https://developer.mozilla.org/en-US/docs/Web/HTML/Element). 😉 ","created_at":"2017-09-27T01:18:49Z","updated_at":"2017-09-27T18:31:10Z","closed_at":null,"merged_at":null,"merge_commit_sha":"1dd192b0c643e71f3e49b77f9222a02d786b0797","assignee":null,"assignees":[],"requested_reviewers":[],"milestone":null,"commits_url":"https://api.github.com/repos/nteract/vdom/pulls/12/commits","review_comments_url":"https://api.github.com/repos/nteract/vdom/pulls/12/comments","review_comment_url":"https://api.github.com/repos/nteract/vdom/pulls/comments{/number}","comments_url":"https://api.github.com/repos/nteract/vdom/issues/12/comments","statuses_url":"https://api.github.com/repos/nteract/vdom/statuses/e67057247510424c8aff469644d0851071382f83","head":{"label":"nteract:helpers","ref":"helpers","sha":"e67057247510424c8aff469644d0851071382f83","user":{"login":"nteract","id":12401040,"avatar_url":"https://avatars0.githubusercontent.com/u/12401040?v=4","gravatar_id":"","url":"https://api.github.com/users/nteract","html_url":"https://github.com/nteract","followers_url":"https://api.github.com/users/nteract/followers","following_url":"https://api.github.com/users/nteract/following{/other_user}","gists_url":"https://api.github.com/users/nteract/gists{/gist_id}","starred_url":"https://api.github.com/users/nteract/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/nteract/subscriptions","organizations_url":"https://api.github.com/users/nteract/orgs","repos_url":"https://api.github.com/users/nteract/repos","events_url":"https://api.github.com/users/nteract/events{/privacy}","received_events_url":"https://api.github.com/users/nteract/received_events","type":"Organization","site_admin":false},"repo":{"id":101915990,"name":"vdom","full_name":"nteract/vdom","owner":{"login":"nteract","id":12401040,"avatar_url":"https://avatars0.githubusercontent.com/u/12401040?v=4","gravatar_id":"","url":"https://api.github.com/users/nteract","html_url":"https://github.com/nteract","followers_url":"https://api.github.com/users/nteract/followers","following_url":"https://api.github.com/users/nteract/following{/other_user}","gists_url":"https://api.github.com/users/nteract/gists{/gist_id}","starred_url":"https://api.github.com/users/nteract/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/nteract/subscriptions","organizations_url":"https://api.github.com/users/nteract/orgs","repos_url":"https://api.github.com/users/nteract/repos","events_url":"https://api.github.com/users/nteract/events{/privacy}","received_events_url":"https://api.github.com/users/nteract/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/nteract/vdom","description":"🎄 VDOM for Python","fork":false,"url":"https://api.github.com/repos/nteract/vdom","forks_url":"https://api.github.com/repos/nteract/vdom/forks","keys_url":"https://api.github.com/repos/nteract/vdom/keys{/key_id}","collaborators_url":"https://api.github.com/repos/nteract/vdom/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/nteract/vdom/teams","hooks_url":"https://api.github.com/repos/nteract/vdom/hooks","issue_events_url":"https://api.github.com/repos/nteract/vdom/issues/events{/number}","events_url":"https://api.github.com/repos/nteract/vdom/events","assignees_url":"https://api.github.com/repos/nteract/vdom/assignees{/user}","branches_url":"https://api.github.com/repos/nteract/vdom/branches{/branch}","tags_url":"https://api.github.com/repos/nteract/vdom/tags","blobs_url":"https://api.github.com/repos/nteract/vdom/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/nteract/vdom/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/nteract/vdom/git/refs{/sha}","trees_url":"https://api.github.com/repos/nteract/vdom/git/trees{/sha}","statuses_url":"https://api.github.com/repos/nteract/vdom/statuses/{sha}","languages_url":"https://api.github.com/repos/nteract/vdom/languages","stargazers_url":"https://api.github.com/repos/nteract/vdom/stargazers","contributors_url":"https://api.github.com/repos/nteract/vdom/contributors","subscribers_url":"https://api.github.com/repos/nteract/vdom/subscribers","subscription_url":"https://api.github.com/repos/nteract/vdom/subscription","commits_url":"https://api.github.com/repos/nteract/vdom/commits{/sha}","git_commits_url":"https://api.github.com/repos/nteract/vdom/git/commits{/sha}","comments_url":"https://api.github.com/repos/nteract/vdom/comments{/number}","issue_comment_url":"https://api.github.com/repos/nteract/vdom/issues/comments{/number}","contents_url":"https://api.github.com/repos/nteract/vdom/contents/{+path}","compare_url":"https://api.github.com/repos/nteract/vdom/compare/{base}...{head}","merges_url":"https://api.github.com/repos/nteract/vdom/merges","archive_url":"https://api.github.com/repos/nteract/vdom/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/nteract/vdom/downloads","issues_url":"https://api.github.com/repos/nteract/vdom/issues{/number}","pulls_url":"https://api.github.com/repos/nteract/vdom/pulls{/number}","milestones_url":"https://api.github.com/repos/nteract/vdom/milestones{/number}","notifications_url":"https://api.github.com/repos/nteract/vdom/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/nteract/vdom/labels{/name}","releases_url":"https://api.github.com/repos/nteract/vdom/releases{/id}","deployments_url":"https://api.github.com/repos/nteract/vdom/deployments","created_at":"2017-08-30T18:31:57Z","updated_at":"2017-09-25T15:23:36Z","pushed_at":"2017-09-27T01:18:50Z","git_url":"git://github.com/nteract/vdom.git","ssh_url":"git@github.com:nteract/vdom.git","clone_url":"https://github.com/nteract/vdom.git","svn_url":"https://github.com/nteract/vdom","homepage":"https://github.com/nteract/vdom/blob/master/docs/spec.md","size":32,"stargazers_count":11,"watchers_count":11,"language":"Python","has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":2,"mirror_url":null,"open_issues_count":6,"forks":2,"open_issues":6,"watchers":11,"default_branch":"master"}},"base":{"label":"nteract:master","ref":"master","sha":"dfac2f2a42fd5bc64b230339c3862d546dcad389","user":{"login":"nteract","id":12401040,"avatar_url":"https://avatars0.githubusercontent.com/u/12401040?v=4","gravatar_id":"","url":"https://api.github.com/users/nteract","html_url":"https://github.com/nteract","followers_url":"https://api.github.com/users/nteract/followers","following_url":"https://api.github.com/users/nteract/following{/other_user}","gists_url":"https://api.github.com/users/nteract/gists{/gist_id}","starred_url":"https://api.github.com/users/nteract/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/nteract/subscriptions","organizations_url":"https://api.github.com/users/nteract/orgs","repos_url":"https://api.github.com/users/nteract/repos","events_url":"https://api.github.com/users/nteract/events{/privacy}","received_events_url":"https://api.github.com/users/nteract/received_events","type":"Organization","site_admin":false},"repo":{"id":101915990,"name":"vdom","full_name":"nteract/vdom","owner":{"login":"nteract","id":12401040,"avatar_url":"https://avatars0.githubusercontent.com/u/12401040?v=4","gravatar_id":"","url":"https://api.github.com/users/nteract","html_url":"https://github.com/nteract","followers_url":"https://api.github.com/users/nteract/followers","following_url":"https://api.github.com/users/nteract/following{/other_user}","gists_url":"https://api.github.com/users/nteract/gists{/gist_id}","starred_url":"https://api.github.com/users/nteract/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/nteract/subscriptions","organizations_url":"https://api.github.com/users/nteract/orgs","repos_url":"https://api.github.com/users/nteract/repos","events_url":"https://api.github.com/users/nteract/events{/privacy}","received_events_url":"https://api.github.com/users/nteract/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/nteract/vdom","description":"🎄 VDOM for Python","fork":false,"url":"https://api.github.com/repos/nteract/vdom","forks_url":"https://api.github.com/repos/nteract/vdom/forks","keys_url":"https://api.github.com/repos/nteract/vdom/keys{/key_id}","collaborators_url":"https://api.github.com/repos/nteract/vdom/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/nteract/vdom/teams","hooks_url":"https://api.github.com/repos/nteract/vdom/hooks","issue_events_url":"https://api.github.com/repos/nteract/vdom/issues/events{/number}","events_url":"https://api.github.com/repos/nteract/vdom/events","assignees_url":"https://api.github.com/repos/nteract/vdom/assignees{/user}","branches_url":"https://api.github.com/repos/nteract/vdom/branches{/branch}","tags_url":"https://api.github.com/repos/nteract/vdom/tags","blobs_url":"https://api.github.com/repos/nteract/vdom/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/nteract/vdom/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/nteract/vdom/git/refs{/sha}","trees_url":"https://api.github.com/repos/nteract/vdom/git/trees{/sha}","statuses_url":"https://api.github.com/repos/nteract/vdom/statuses/{sha}","languages_url":"https://api.github.com/repos/nteract/vdom/languages","stargazers_url":"https://api.github.com/repos/nteract/vdom/stargazers","contributors_url":"https://api.github.com/repos/nteract/vdom/contributors","subscribers_url":"https://api.github.com/repos/nteract/vdom/subscribers","subscription_url":"https://api.github.com/repos/nteract/vdom/subscription","commits_url":"https://api.github.com/repos/nteract/vdom/commits{/sha}","git_commits_url":"https://api.github.com/repos/nteract/vdom/git/commits{/sha}","comments_url":"https://api.github.com/repos/nteract/vdom/comments{/number}","issue_comment_url":"https://api.github.com/repos/nteract/vdom/issues/comments{/number}","contents_url":"https://api.github.com/repos/nteract/vdom/contents/{+path}","compare_url":"https://api.github.com/repos/nteract/vdom/compare/{base}...{head}","merges_url":"https://api.github.com/repos/nteract/vdom/merges","archive_url":"https://api.github.com/repos/nteract/vdom/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/nteract/vdom/downloads","issues_url":"https://api.github.com/repos/nteract/vdom/issues{/number}","pulls_url":"https://api.github.com/repos/nteract/vdom/pulls{/number}","milestones_url":"https://api.github.com/repos/nteract/vdom/milestones{/number}","notifications_url":"https://api.github.com/repos/nteract/vdom/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/nteract/vdom/labels{/name}","releases_url":"https://api.github.com/repos/nteract/vdom/releases{/id}","deployments_url":"https://api.github.com/repos/nteract/vdom/deployments","created_at":"2017-08-30T18:31:57Z","updated_at":"2017-09-25T15:23:36Z","pushed_at":"2017-09-27T01:18:50Z","git_url":"git://github.com/nteract/vdom.git","ssh_url":"git@github.com:nteract/vdom.git","clone_url":"https://github.com/nteract/vdom.git","svn_url":"https://github.com/nteract/vdom","homepage":"https://github.com/nteract/vdom/blob/master/docs/spec.md","size":32,"stargazers_count":11,"watchers_count":11,"language":"Python","has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":2,"mirror_url":null,"open_issues_count":6,"forks":2,"open_issues":6,"watchers":11,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/nteract/vdom/pulls/12"},"html":{"href":"https://github.com/nteract/vdom/pull/12"},"issue":{"href":"https://api.github.com/repos/nteract/vdom/issues/12"},"comments":{"href":"https://api.github.com/repos/nteract/vdom/issues/12/comments"},"review_comments":{"href":"https://api.github.com/repos/nteract/vdom/pulls/12/comments"},"review_comment":{"href":"https://api.github.com/repos/nteract/vdom/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/nteract/vdom/pulls/12/commits"},"statuses":{"href":"https://api.github.com/repos/nteract/vdom/statuses/e67057247510424c8aff469644d0851071382f83"}},"author_association":"OWNER"}}
{"actor":{"display_login":"willingc"}}