{"action":"created","issue":{"url":"https://api.github.com/repos/aui/artTemplate/issues/181","labels_url":"https://api.github.com/repos/aui/artTemplate/issues/181/labels{/name}","comments_url":"https://api.github.com/repos/aui/artTemplate/issues/181/comments","events_url":"https://api.github.com/repos/aui/artTemplate/issues/181/events","html_url":"https://github.com/aui/artTemplate/issues/181","id":67136944,"number":181,"title":"使用简明语法时，有好方法可以将模板写到纯js文件中吗？","user":{"login":"yaotaiyang","id":2947893,"avatar_url":"https://avatars.githubusercontent.com/u/2947893?v=3","gravatar_id":"","url":"https://api.github.com/users/yaotaiyang","html_url":"https://github.com/yaotaiyang","followers_url":"https://api.github.com/users/yaotaiyang/followers","following_url":"https://api.github.com/users/yaotaiyang/following{/other_user}","gists_url":"https://api.github.com/users/yaotaiyang/gists{/gist_id}","starred_url":"https://api.github.com/users/yaotaiyang/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/yaotaiyang/subscriptions","organizations_url":"https://api.github.com/users/yaotaiyang/orgs","repos_url":"https://api.github.com/users/yaotaiyang/repos","events_url":"https://api.github.com/users/yaotaiyang/events{/privacy}","received_events_url":"https://api.github.com/users/yaotaiyang/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":2,"created_at":"2015-04-08T13:59:50Z","updated_at":"2015-04-25T08:11:02Z","closed_at":"2015-04-25T08:11:02Z","body":"上次发的怎么不见了……使用简明语法时，有好方法可以将模板写到纯js文件中吗，比如我有个dialog.js文件，该文件中有对应的js模板，以及对应的js逻辑，模板放到html中的时候，如 <pre><code> \r\n&lt;script type=\"text/html\" id=\"temp\"&gt; &lt;/script&gt;  \r\nvar html = template(\"temp\",{});</code></pre> \r\n如果放到js文件中，就没有id了，模板有好的书写方式吗？"},"comment":{"url":"https://api.github.com/repos/aui/artTemplate/issues/comments/96156174","html_url":"https://github.com/aui/artTemplate/issues/181#issuecomment-96156174","issue_url":"https://api.github.com/repos/aui/artTemplate/issues/181","id":96156174,"user":{"login":"aui","id":1791748,"avatar_url":"https://avatars.githubusercontent.com/u/1791748?v=3","gravatar_id":"","url":"https://api.github.com/users/aui","html_url":"https://github.com/aui","followers_url":"https://api.github.com/users/aui/followers","following_url":"https://api.github.com/users/aui/following{/other_user}","gists_url":"https://api.github.com/users/aui/gists{/gist_id}","starred_url":"https://api.github.com/users/aui/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/aui/subscriptions","organizations_url":"https://api.github.com/users/aui/orgs","repos_url":"https://api.github.com/users/aui/repos","events_url":"https://api.github.com/users/aui/events{/privacy}","received_events_url":"https://api.github.com/users/aui/received_events","type":"User","site_admin":false},"created_at":"2015-04-25T08:11:02Z","updated_at":"2015-04-25T08:11:02Z","body":"<http://github.com/aui/tmodjs>"}}