{"action":"opened","issue":{"url":"https://api.github.com/repos/goodeggs/teacup/issues/48","labels_url":"https://api.github.com/repos/goodeggs/teacup/issues/48/labels{/name}","comments_url":"https://api.github.com/repos/goodeggs/teacup/issues/48/comments","events_url":"https://api.github.com/repos/goodeggs/teacup/issues/48/events","html_url":"https://github.com/goodeggs/teacup/issues/48","id":57689706,"number":48,"title":"Consider adding optimization","user":{"login":"wmertens","id":54934,"avatar_url":"https://avatars.githubusercontent.com/u/54934?v=3","gravatar_id":"","url":"https://api.github.com/users/wmertens","html_url":"https://github.com/wmertens","followers_url":"https://api.github.com/users/wmertens/followers","following_url":"https://api.github.com/users/wmertens/following{/other_user}","gists_url":"https://api.github.com/users/wmertens/gists{/gist_id}","starred_url":"https://api.github.com/users/wmertens/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/wmertens/subscriptions","organizations_url":"https://api.github.com/users/wmertens/orgs","repos_url":"https://api.github.com/users/wmertens/repos","events_url":"https://api.github.com/users/wmertens/events{/privacy}","received_events_url":"https://api.github.com/users/wmertens/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":0,"created_at":"2015-02-14T11:01:51Z","updated_at":"2015-02-14T11:01:51Z","closed_at":null,"body":"In https://github.com/gradus/coffeecup/blob/master/src/compiler.coffee there's an implementation of how to walk the ([ck]offee|tea)[ck]up templates and optimize the function calls into plain HTML. Anything that's static is converted to strings and only the parameters remain, greatly improving the time needed to run the template.\r\n\r\nThis is useful when you're using client-side re-rendering, like React does.\r\n\r\n(Incidentally, it's not a great leap from teacup to generating React.JS code)"}}