Server rejects template script request

H

helveticus

Hi, I am confronted to a nasty problem: In a number of pages, I have
included an external js script to generate templated data. The script
relies on the embedded javascript library (ejs) library (http://
code.google.com/p/embeddedjavascript/wiki/Testing ). Ejs allows html
to be mixed with <%= ..%> control tags. The ejs templates work w/o
problems on my local machine, but fail on the server. All pages are
xhtml 1.0 transitional compliant.

When the page is rendered by the hosting server, Firebug issues the
exception error: There is no template at ... I noticed that the
template is found when the erb-style delimiters <%= %> are omitted.
It seems that ASP.NET refuses to service the request whenever these
control tags are embedded in the template script.

Question: How can ASP.NET be fooled to render the script (page
declarations, ..) ?

PS: My initial design was based on John Resig's micro-template.
Unfortunately, I had to give it up since it does not pass XHMTL
validation
 
H

helveticus

Problem solved! It turns out that the problem was of type: HTTP 404 -
File not found error. Adding a new MIME (type: text/html;
extension: .ejs) in my IIS hosting account solve the issue.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,769
Messages
2,569,582
Members
45,065
Latest member
OrderGreenAcreCBD

Latest Threads

Top