{"action":"opened","issue":{"url":"https://api.github.com/repos/PalmerAL/scratchpad/issues/29","labels_url":"https://api.github.com/repos/PalmerAL/scratchpad/issues/29/labels{/name}","comments_url":"https://api.github.com/repos/PalmerAL/scratchpad/issues/29/comments","events_url":"https://api.github.com/repos/PalmerAL/scratchpad/issues/29/events","html_url":"https://github.com/PalmerAL/scratchpad/issues/29","id":56140103,"number":29,"title":"block templating","user":{"login":"PalmerAL","id":10314059,"avatar_url":"https://avatars.githubusercontent.com/u/10314059?v=3","gravatar_id":"","url":"https://api.github.com/users/PalmerAL","html_url":"https://github.com/PalmerAL","followers_url":"https://api.github.com/users/PalmerAL/followers","following_url":"https://api.github.com/users/PalmerAL/following{/other_user}","gists_url":"https://api.github.com/users/PalmerAL/gists{/gist_id}","starred_url":"https://api.github.com/users/PalmerAL/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/PalmerAL/subscriptions","organizations_url":"https://api.github.com/users/PalmerAL/orgs","repos_url":"https://api.github.com/users/PalmerAL/repos","events_url":"https://api.github.com/users/PalmerAL/events{/privacy}","received_events_url":"https://api.github.com/users/PalmerAL/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/PalmerAL/scratchpad/labels/enhancement","name":"enhancement","color":"84b6eb"},{"url":"https://api.github.com/repos/PalmerAL/scratchpad/labels/help%20wanted","name":"help wanted","color":"159818"}],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":0,"created_at":"2015-01-31T21:25:41Z","updated_at":"2015-01-31T21:25:41Z","closed_at":null,"body":"I think that instead of programming each block manually, it would be nice to have some kind of template file for each block. This would make it easier to update blocks and add custom blocks. The file would include:\r\n\r\n - block name\r\n - button icon\r\n - options (a list of name/input type pairs that will be used in the dialog\r\n - a function to process the options and return the processed result\r\n - html template (with something like handlebars for inputting the options)"}}