{"action":"created","issue":{"url":"https://api.github.com/repos/canjs/can-stache/issues/57","repository_url":"https://api.github.com/repos/canjs/can-stache","labels_url":"https://api.github.com/repos/canjs/can-stache/issues/57/labels{/name}","comments_url":"https://api.github.com/repos/canjs/can-stache/issues/57/comments","events_url":"https://api.github.com/repos/canjs/can-stache/issues/57/events","html_url":"https://github.com/canjs/can-stache/issues/57","id":173867289,"number":57,"title":"Provide an API to create a renderer from a template","user":{"login":"matthewp","id":361671,"avatar_url":"https://avatars.githubusercontent.com/u/361671?v=3","gravatar_id":"","url":"https://api.github.com/users/matthewp","html_url":"https://github.com/matthewp","followers_url":"https://api.github.com/users/matthewp/followers","following_url":"https://api.github.com/users/matthewp/following{/other_user}","gists_url":"https://api.github.com/users/matthewp/gists{/gist_id}","starred_url":"https://api.github.com/users/matthewp/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/matthewp/subscriptions","organizations_url":"https://api.github.com/users/matthewp/orgs","repos_url":"https://api.github.com/users/matthewp/repos","events_url":"https://api.github.com/users/matthewp/events{/privacy}","received_events_url":"https://api.github.com/users/matthewp/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":{"login":"justinbmeyer","id":78602,"avatar_url":"https://avatars.githubusercontent.com/u/78602?v=3","gravatar_id":"","url":"https://api.github.com/users/justinbmeyer","html_url":"https://github.com/justinbmeyer","followers_url":"https://api.github.com/users/justinbmeyer/followers","following_url":"https://api.github.com/users/justinbmeyer/following{/other_user}","gists_url":"https://api.github.com/users/justinbmeyer/gists{/gist_id}","starred_url":"https://api.github.com/users/justinbmeyer/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/justinbmeyer/subscriptions","organizations_url":"https://api.github.com/users/justinbmeyer/orgs","repos_url":"https://api.github.com/users/justinbmeyer/repos","events_url":"https://api.github.com/users/justinbmeyer/events{/privacy}","received_events_url":"https://api.github.com/users/justinbmeyer/received_events","type":"User","site_admin":false},"assignees":[{"login":"justinbmeyer","id":78602,"avatar_url":"https://avatars.githubusercontent.com/u/78602?v=3","gravatar_id":"","url":"https://api.github.com/users/justinbmeyer","html_url":"https://github.com/justinbmeyer","followers_url":"https://api.github.com/users/justinbmeyer/followers","following_url":"https://api.github.com/users/justinbmeyer/following{/other_user}","gists_url":"https://api.github.com/users/justinbmeyer/gists{/gist_id}","starred_url":"https://api.github.com/users/justinbmeyer/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/justinbmeyer/subscriptions","organizations_url":"https://api.github.com/users/justinbmeyer/orgs","repos_url":"https://api.github.com/users/justinbmeyer/repos","events_url":"https://api.github.com/users/justinbmeyer/events{/privacy}","received_events_url":"https://api.github.com/users/justinbmeyer/received_events","type":"User","site_admin":false}],"milestone":null,"comments":5,"created_at":"2016-08-29T20:40:55Z","updated_at":"2016-08-30T19:05:16Z","closed_at":null,"body":"```html\r\n<script type=\"text/stache\" id=\"template\">\r\n  <span>{{name}}</span>\r\n</script>\r\n\r\n<script type=\"text/steal-module\">\r\n  var stache = require(\"can-stache\");\r\n\r\n  var render = stache.querySelector(\"#template\");\r\n</script>\r\n```\r\n\r\nNot sure on the name, here's some options:\r\n\r\n* **.querySelector(selector)**: Matches the native API, but is long.\r\n* **.select(selector)**: Shorter, but less clear maybe\r\n* **.$(selector)**: jQuery-like, possibly confusing.\r\n* **.from(selector)**\r\n\r\n----\r\n\r\nCode for this function is essentially just:\r\n\r\n```js\r\nfunction qs(selector) {\r\n  var script = DOCUMENT().querySelector(selector);\r\n  var txt = script.innerHTML;\r\n  return stache(txt);\r\n}\r\n```"},"comment":{"url":"https://api.github.com/repos/canjs/can-stache/issues/comments/243545545","html_url":"https://github.com/canjs/can-stache/issues/57#issuecomment-243545545","issue_url":"https://api.github.com/repos/canjs/can-stache/issues/57","id":243545545,"user":{"login":"justinbmeyer","id":78602,"avatar_url":"https://avatars.githubusercontent.com/u/78602?v=3","gravatar_id":"","url":"https://api.github.com/users/justinbmeyer","html_url":"https://github.com/justinbmeyer","followers_url":"https://api.github.com/users/justinbmeyer/followers","following_url":"https://api.github.com/users/justinbmeyer/following{/other_user}","gists_url":"https://api.github.com/users/justinbmeyer/gists{/gist_id}","starred_url":"https://api.github.com/users/justinbmeyer/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/justinbmeyer/subscriptions","organizations_url":"https://api.github.com/users/justinbmeyer/orgs","repos_url":"https://api.github.com/users/justinbmeyer/repos","events_url":"https://api.github.com/users/justinbmeyer/events{/privacy}","received_events_url":"https://api.github.com/users/justinbmeyer/received_events","type":"User","site_admin":false},"created_at":"2016-08-30T19:05:16Z","updated_at":"2016-08-30T19:05:16Z","body":"What's the use case for using a selector instead of an ID?  I can't remember a selector ever being used."}}
{"actor":{"display_login":"justinbmeyer"}}