{"action":"created","issue":{"url":"https://api.github.com/repos/TypeStrong/grunt-ts/issues/237","labels_url":"https://api.github.com/repos/TypeStrong/grunt-ts/issues/237/labels{/name}","comments_url":"https://api.github.com/repos/TypeStrong/grunt-ts/issues/237/comments","events_url":"https://api.github.com/repos/TypeStrong/grunt-ts/issues/237/events","html_url":"https://github.com/TypeStrong/grunt-ts/pull/237","id":71157673,"number":237,"title":"Add support for file names with multiple periods on them.","user":{"login":"starstuffharvestingstarlight","id":6132703,"avatar_url":"https://avatars.githubusercontent.com/u/6132703?v=3","gravatar_id":"","url":"https://api.github.com/users/starstuffharvestingstarlight","html_url":"https://github.com/starstuffharvestingstarlight","followers_url":"https://api.github.com/users/starstuffharvestingstarlight/followers","following_url":"https://api.github.com/users/starstuffharvestingstarlight/following{/other_user}","gists_url":"https://api.github.com/users/starstuffharvestingstarlight/gists{/gist_id}","starred_url":"https://api.github.com/users/starstuffharvestingstarlight/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/starstuffharvestingstarlight/subscriptions","organizations_url":"https://api.github.com/users/starstuffharvestingstarlight/orgs","repos_url":"https://api.github.com/users/starstuffharvestingstarlight/repos","events_url":"https://api.github.com/users/starstuffharvestingstarlight/events{/privacy}","received_events_url":"https://api.github.com/users/starstuffharvestingstarlight/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":2,"created_at":"2015-04-27T02:31:38Z","updated_at":"2015-04-28T00:30:32Z","closed_at":null,"pull_request":{"url":"https://api.github.com/repos/TypeStrong/grunt-ts/pulls/237","html_url":"https://github.com/TypeStrong/grunt-ts/pull/237","diff_url":"https://github.com/TypeStrong/grunt-ts/pull/237.diff","patch_url":"https://github.com/TypeStrong/grunt-ts/pull/237.patch"},"body":"When compiling html files with names containing periods, the compile function creates invalid ts output.\r\n\r\nOptions used:\r\n```\r\noptions: {\r\n  htmlModuleTemplate: 'Templates',\r\n  htmlVarTemplate: '<%= filename %>_<%= ext %>'\r\n}\r\n```\r\n\r\nExample:\r\n``test.view.example.index.html`` -> ``test.view.example.index.html.ts``\r\n\r\nOutputs ``test.view.example.index.html.ts``:\r\n```\r\nmodule mctUntitledAppTemplates_Dev { export var test_view.example.index_html =  '<html><body>Hello world' }\r\n```\r\n\r\nWhich then causes a compile error:\r\n```\r\ntest.view.example.index.html.ts(1,58): error TS1005: ',' expected.\r\ntest.view.example.index.html.ts(1,66): error TS1005: ',' expected.\r\n```\r\n\r\nThis commit includes a basic fix by replacing all occurrences of ``'\\.'``. Note that it might be a good idea to replace other special js characters.\r\n\r\nI have too many files with this naming scheme, so a fix would be great. Thank you!"},"comment":{"url":"https://api.github.com/repos/TypeStrong/grunt-ts/issues/comments/96857163","html_url":"https://github.com/TypeStrong/grunt-ts/pull/237#issuecomment-96857163","issue_url":"https://api.github.com/repos/TypeStrong/grunt-ts/issues/237","id":96857163,"user":{"login":"starstuffharvestingstarlight","id":6132703,"avatar_url":"https://avatars.githubusercontent.com/u/6132703?v=3","gravatar_id":"","url":"https://api.github.com/users/starstuffharvestingstarlight","html_url":"https://github.com/starstuffharvestingstarlight","followers_url":"https://api.github.com/users/starstuffharvestingstarlight/followers","following_url":"https://api.github.com/users/starstuffharvestingstarlight/following{/other_user}","gists_url":"https://api.github.com/users/starstuffharvestingstarlight/gists{/gist_id}","starred_url":"https://api.github.com/users/starstuffharvestingstarlight/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/starstuffharvestingstarlight/subscriptions","organizations_url":"https://api.github.com/users/starstuffharvestingstarlight/orgs","repos_url":"https://api.github.com/users/starstuffharvestingstarlight/repos","events_url":"https://api.github.com/users/starstuffharvestingstarlight/events{/privacy}","received_events_url":"https://api.github.com/users/starstuffharvestingstarlight/received_events","type":"User","site_admin":false},"created_at":"2015-04-28T00:30:32Z","updated_at":"2015-04-28T00:30:32Z","body":"Done! Note that compilation will actually fail if you revert 639f5ad so it never gets to the actual test. I added a couple of output checks anyway. Thanks for your quick feedback!"}}