Hi, David:

> We are getting heavily into using Javscript in our projects in all tiers.

That's great to hear.   Feedback on what works and what can be improved is,
of course, is very welcome.

> We would like to be able to import/require javascript ending in .js

8.0-4 should (with the usual forward-looking caveats) support exactly
that behavior by default.

By contrast with library modules, *.js main modules will still default to 
treatment
as resources for transfer to the client for execution in the browser (instead of
server-side executables).


Hoping that's useful,


Erik Hennum

________________________________
From: [email protected] 
[[email protected]] on behalf of David Ennis 
[[email protected]]
Sent: Thursday, September 17, 2015 6:07 PM
To: MarkLogic Developer Discussion
Subject: [MarkLogic Dev General] .sjs vs .js

Dear friends,

We are getting heavily into using Javscript in our projects in all tiers.

For practical purposes(sharing existing libraries), We would like to be able to 
import/require javascript ending in .js and not only .sjs

In our build processes, we could refactor the libraries to use sjs, but that is 
not ideal.

One of our developers found that my adding the mime-type to ML, he could 
successfully use .js files in ML.

The Question:
Does anyone know of any negative effect this  might have - or possibly an 
opinion of how this would go against any best-practices for the JS part of ML?

I see some concerns about (maybe ) a security issue (other JS files would then 
by default be accessible) - but that is all I can come up with........



Kind Regards,
David Ennis


David Ennis
Content Engineer

[HintTech] <http://www.hinttech.com/>
Mastering the value of content
creative | technology | content

Delftechpark 37i
2628 XJ Delft
The Netherlands
T: +31 88 268 25 00
M: +31 63 091 72 80

[http://www.hinttech.com]<http://www.hinttech.com> 
[http://www.hinttech.com/signature/Twitter_HintTech.png] 
<https://twitter.com/HintTech>  
[http://www.hinttech.com/signature/Facebook_HintTech.png] 
<http://www.facebook.com/HintTech>  
[http://www.hinttech.com/signature/Linkedin_HintTech.png] 
<http://www.linkedin.com/company/HintTech>
_______________________________________________
General mailing list
[email protected]
Manage your subscription at: 
http://developer.marklogic.com/mailman/listinfo/general

Reply via email to