{"action":"created","issue":{"url":"https://api.github.com/repos/dciccale/grunt-processhtml/issues/86","labels_url":"https://api.github.com/repos/dciccale/grunt-processhtml/issues/86/labels{/name}","comments_url":"https://api.github.com/repos/dciccale/grunt-processhtml/issues/86/comments","events_url":"https://api.github.com/repos/dciccale/grunt-processhtml/issues/86/events","html_url":"https://github.com/dciccale/grunt-processhtml/issues/86","id":118156442,"number":86,"title":"Paths with PHP in them - escape or ignore?","user":{"login":"aleross","id":1857007,"avatar_url":"https://avatars.githubusercontent.com/u/1857007?v=3","gravatar_id":"","url":"https://api.github.com/users/aleross","html_url":"https://github.com/aleross","followers_url":"https://api.github.com/users/aleross/followers","following_url":"https://api.github.com/users/aleross/following{/other_user}","gists_url":"https://api.github.com/users/aleross/gists{/gist_id}","starred_url":"https://api.github.com/users/aleross/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/aleross/subscriptions","organizations_url":"https://api.github.com/users/aleross/orgs","repos_url":"https://api.github.com/users/aleross/repos","events_url":"https://api.github.com/users/aleross/events{/privacy}","received_events_url":"https://api.github.com/users/aleross/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":4,"created_at":"2015-11-21T00:42:00Z","updated_at":"2015-11-22T15:54:54Z","closed_at":null,"body":"Hi,\r\n\r\nI have a bit of PHP which selects which JS file to load based on user information:\r\n\r\n```\r\n<!-- release /js/<?php echo $app; ?>.min.js -->\r\n<script src=\"/js/<?php echo $app; ?>.js\"></script>\r\n<!-- /build -->\r\n```\r\n\r\nThe problem is, the release path comes out `undefined`. Is it possible to ignore the PHP and pass it through after processing the file?\r\n\r\nI can get around it by coding out all of the cases, but this isn't ideal:\r\n\r\n```\r\n        <?php if ($app === 'case1') { ?>\r\n            <!-- build:js:release /js/case1.min.js -->\r\n            <script src=\"/js/case1.js\"></script>\r\n            <!-- /build -->\r\n        <?php } elseif ($app === 'case2') { ?>\r\n            <!-- build:js:release /js/case2.min.js -->\r\n            <script src=\"/js/case2.js\"></script>\r\n            <!-- /build -->\r\n        <?php } else { ?>\r\n            <!-- build:js:release /js/case3.min.js -->\r\n            <script src=\"/js/case3.js\"></script>\r\n            <!-- /build -->\r\n        <?php } ?>\r\n```"},"comment":{"url":"https://api.github.com/repos/dciccale/grunt-processhtml/issues/comments/158770700","html_url":"https://github.com/dciccale/grunt-processhtml/issues/86#issuecomment-158770700","issue_url":"https://api.github.com/repos/dciccale/grunt-processhtml/issues/86","id":158770700,"user":{"login":"dciccale","id":539546,"avatar_url":"https://avatars.githubusercontent.com/u/539546?v=3","gravatar_id":"","url":"https://api.github.com/users/dciccale","html_url":"https://github.com/dciccale","followers_url":"https://api.github.com/users/dciccale/followers","following_url":"https://api.github.com/users/dciccale/following{/other_user}","gists_url":"https://api.github.com/users/dciccale/gists{/gist_id}","starred_url":"https://api.github.com/users/dciccale/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/dciccale/subscriptions","organizations_url":"https://api.github.com/users/dciccale/orgs","repos_url":"https://api.github.com/users/dciccale/repos","events_url":"https://api.github.com/users/dciccale/events{/privacy}","received_events_url":"https://api.github.com/users/dciccale/received_events","type":"User","site_admin":false},"created_at":"2015-11-22T15:54:54Z","updated_at":"2015-11-22T15:54:54Z","body":"@aleross feel free to work it out yourself, just play around with the regex and run the test `npm test`"}}