views:

39

answers:

1

So, I want to serve up some .ejs files (EJS templates.. see http://embeddedjs.com for more info) from my /Content or /Scripts folder in an ASP.NET MVC project.

This behavior doesn't seem to work out of the box. Is there a configuration-based solution to make this happen? I suppose this would apply to those wanting to serve any kind of "non-standard" static content out of ASP.NET MVC..

In my case it has to serve .ejs files (can't rename to .js) because the EJS framework looks for URLs ending in .ejs and, if the URL you provide has some other extension, it'll just attach .ejs to the end..

Thanks

+1  A: 

http://stackoverflow.com/questions/1543609/404-with-iis7-asp-mvc-doc-and-pdf-files-in-folder

That makes answer a duplicate, pretty much.. change *.bz2 to *.ejs and bob's your uncle.

olson.jeffery