{"action":"created","issue":{"url":"https://api.github.com/repos/Fliplet/fliplet-cli/issues/6","repository_url":"https://api.github.com/repos/Fliplet/fliplet-cli","labels_url":"https://api.github.com/repos/Fliplet/fliplet-cli/issues/6/labels{/name}","comments_url":"https://api.github.com/repos/Fliplet/fliplet-cli/issues/6/comments","events_url":"https://api.github.com/repos/Fliplet/fliplet-cli/issues/6/events","html_url":"https://github.com/Fliplet/fliplet-cli/pull/6","id":196989570,"number":6,"title":"support for handlebars templates","user":{"login":"squallstar","id":574210,"avatar_url":"https://avatars.githubusercontent.com/u/574210?v=3","gravatar_id":"","url":"https://api.github.com/users/squallstar","html_url":"https://github.com/squallstar","followers_url":"https://api.github.com/users/squallstar/followers","following_url":"https://api.github.com/users/squallstar/following{/other_user}","gists_url":"https://api.github.com/users/squallstar/gists{/gist_id}","starred_url":"https://api.github.com/users/squallstar/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/squallstar/subscriptions","organizations_url":"https://api.github.com/users/squallstar/orgs","repos_url":"https://api.github.com/users/squallstar/repos","events_url":"https://api.github.com/users/squallstar/events{/privacy}","received_events_url":"https://api.github.com/users/squallstar/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":1,"created_at":"2016-12-21T17:30:29Z","updated_at":"2016-12-21T17:32:02Z","closed_at":null,"pull_request":{"url":"https://api.github.com/repos/Fliplet/fliplet-cli/pulls/6","html_url":"https://github.com/Fliplet/fliplet-cli/pull/6","diff_url":"https://github.com/Fliplet/fliplet-cli/pull/6.diff","patch_url":"https://github.com/Fliplet/fliplet-cli/pull/6.patch"},"body":"## Using Handlebars in your client-side JS files\r\n\r\nYou can now use handlebars templates in your client-side code and let the system compile them.\r\n\r\n1. Add `handlebars` in your widget.json dependencies\r\n2. Add a reference to `js/interface.templates.js` or `js/build.templates.js` in your build or interface assets\r\n3. Create your templates anywhere in the folders of your component. Please note that the folder structure will be used as namespace for your templates. They will be available under the `Fliplet.Widget.Templates` object.\r\n\r\ne.g. given the following template:\r\n\r\n```\r\njs/foo/bar.interface.hbs\r\n```\r\n\r\nThe handlebars-compiled template will be available as:\r\n\r\n```\r\nvar tpl = Fliplet.Widget.Templates['foo.bar'];\r\nvar html = tpl({ sample: 123 })\r\n```\r\n"},"comment":{"url":"https://api.github.com/repos/Fliplet/fliplet-cli/issues/comments/268586218","html_url":"https://github.com/Fliplet/fliplet-cli/pull/6#issuecomment-268586218","issue_url":"https://api.github.com/repos/Fliplet/fliplet-cli/issues/6","id":268586218,"user":{"login":"seromenho","id":476673,"avatar_url":"https://avatars.githubusercontent.com/u/476673?v=3","gravatar_id":"","url":"https://api.github.com/users/seromenho","html_url":"https://github.com/seromenho","followers_url":"https://api.github.com/users/seromenho/followers","following_url":"https://api.github.com/users/seromenho/following{/other_user}","gists_url":"https://api.github.com/users/seromenho/gists{/gist_id}","starred_url":"https://api.github.com/users/seromenho/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/seromenho/subscriptions","organizations_url":"https://api.github.com/users/seromenho/orgs","repos_url":"https://api.github.com/users/seromenho/repos","events_url":"https://api.github.com/users/seromenho/events{/privacy}","received_events_url":"https://api.github.com/users/seromenho/received_events","type":"User","site_admin":false},"created_at":"2016-12-21T17:32:02Z","updated_at":"2016-12-21T17:32:02Z","body":"😱 "}}
{"actor":{"display_login":"seromenho"}}