Resource Handlers for Javascript

eSiteful Corporation asked on February 10, 2015 18:26

I'm curious if there is a way to register parsers/preprocessors for script files referenced via GetResource.ashx. This would be useful for parsing CoffeeScript, DartJS, etc. I'd like to be able to package up support for those files without requiring Web.config changes.

I have already created a CSS parser using the following guide, but I don't see similar architecture or options for the javascript files.

Thanks in advance for any direction you can offer!

Recent Answers

Brenden Kehren answered on February 10, 2015 20:10

As far as I know, there is not a preprocessor for JS files yet.

Why would you need to change web.config with javascript type resources?

0 votesVote for this answer Mark as a Correct answer

eSiteful Corporation answered on February 10, 2015 21:13

I've always had to add custom handlers for certain file extensions, like CoffeeScript or DartJS, to the Web.config. I'm also having an issue with my MacroExpressions in Javascript files, which may require a JS processor.

0 votesVote for this answer Mark as a Correct answer

   Please, sign in to be able to submit a new answer.