{"action":"created","issue":{"url":"https://api.github.com/repos/Microsoft/TypeScript/issues/5151","labels_url":"https://api.github.com/repos/Microsoft/TypeScript/issues/5151/labels{/name}","comments_url":"https://api.github.com/repos/Microsoft/TypeScript/issues/5151/comments","events_url":"https://api.github.com/repos/Microsoft/TypeScript/issues/5151/events","html_url":"https://github.com/Microsoft/TypeScript/issues/5151","id":110188575,"number":5151,"title":"typescript checking frontend template files","user":{"login":"ducin","id":375027,"avatar_url":"https://avatars.githubusercontent.com/u/375027?v=3","gravatar_id":"","url":"https://api.github.com/users/ducin","html_url":"https://github.com/ducin","followers_url":"https://api.github.com/users/ducin/followers","following_url":"https://api.github.com/users/ducin/following{/other_user}","gists_url":"https://api.github.com/users/ducin/gists{/gist_id}","starred_url":"https://api.github.com/users/ducin/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ducin/subscriptions","organizations_url":"https://api.github.com/users/ducin/orgs","repos_url":"https://api.github.com/users/ducin/repos","events_url":"https://api.github.com/users/ducin/events{/privacy}","received_events_url":"https://api.github.com/users/ducin/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/Microsoft/TypeScript/labels/Needs%20Proposal","name":"Needs Proposal","color":"556b75"},{"url":"https://api.github.com/repos/Microsoft/TypeScript/labels/Suggestion","name":"Suggestion","color":"006b75"}],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":7,"created_at":"2015-10-07T09:49:02Z","updated_at":"2015-10-10T18:42:31Z","closed_at":null,"body":"The greatest feature of TypeScript, in terms of big enterprise apps, is type checking. When modifying/extending something low-level, I'll get all errors that arise beneath - just like I would in Java and .Net. But this relates to TS code.\r\n\r\nMy question is: **is it possible to use TypeScript to check types used in frontend templating engines, such as Handlebars, Underscore or [your favourite templating engine]**?\r\nI've read that [TypeScript 1.6 is gonna support react's JSX](https://github.com/Microsoft/TypeScript/wiki/What's-new-in-TypeScript), but it's a big limitation to one specific engne only. I guess there is no built-in platform-supported solution, but maybe there is someone who made it work somehow?\r\n\r\nOr, in other words, what would you do if you wanted to use TypeScript to check types of variables in handlebars/underscore templates?"},"comment":{"url":"https://api.github.com/repos/Microsoft/TypeScript/issues/comments/147115439","html_url":"https://github.com/Microsoft/TypeScript/issues/5151#issuecomment-147115439","issue_url":"https://api.github.com/repos/Microsoft/TypeScript/issues/5151","id":147115439,"user":{"login":"mhegazy","id":8000722,"avatar_url":"https://avatars.githubusercontent.com/u/8000722?v=3","gravatar_id":"","url":"https://api.github.com/users/mhegazy","html_url":"https://github.com/mhegazy","followers_url":"https://api.github.com/users/mhegazy/followers","following_url":"https://api.github.com/users/mhegazy/following{/other_user}","gists_url":"https://api.github.com/users/mhegazy/gists{/gist_id}","starred_url":"https://api.github.com/users/mhegazy/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mhegazy/subscriptions","organizations_url":"https://api.github.com/users/mhegazy/orgs","repos_url":"https://api.github.com/users/mhegazy/repos","events_url":"https://api.github.com/users/mhegazy/events{/privacy}","received_events_url":"https://api.github.com/users/mhegazy/received_events","type":"User","site_admin":false},"created_at":"2015-10-10T18:42:31Z","updated_at":"2015-10-10T18:42:31Z","body":"Sorry my bad. I did not mean the css class, that was just a copy/past from your example. I meant whatever \"contex\" object this template will be bound to at runtime, the one expected to have a property lastName.\r\nOne issue is to know what template file binds to at runtime, and I do not have much knowledge here..."}}