Limitations

208 views
Skip to first unread message

Travis

unread,
Oct 18, 2010, 6:39:17 PM10/18/10
to Embedded JavaScript
Are there any limitations or risks associated with using EJS? I have
recently discovered it and been very impressed. We are considering
using it for a large enterprise-scale project for which security,
accessibility, scalability, and performance are critical concerns. Is
anyone aware of and limitations or shortcomings of EJS in those areas?

sodamnmad

unread,
Oct 18, 2010, 6:57:34 PM10/18/10
to Embedded JavaScript
One limitation (or annoyance rather) is that it relies on exceptions
to load the templates. I wish they would have done something like:

if (typeof XMLHttpRequest != 'undefined') { use this }
...

instead of try { ... } catch(e) { continue; }

that is just sloppy and makes debugging a nightmare.

Justin Meyer

unread,
Oct 19, 2010, 12:19:17 AM10/19/10
to embeddedj...@googlegroups.com
I would use JavaScriptMVC's version of EJS.  It performs better.

EJS uses prototype's old way of detecting XHR features.  It was state of the art 2 years ago, but techniques have changed.  

All improvements to EJS happen in JavaScriptMVC and we back port them when people complain enough.


Justin Meyer

Jupiter Consulting
\Development\Training\Support
847-924-6039
justin...@gmail.com


--
You received this message because you are subscribed to the Google Groups "Embedded JavaScript" group.
To post to this group, send email to embeddedj...@googlegroups.com.
To unsubscribe from this group, send email to embeddedjavascr...@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/embeddedjavascript?hl=en.


Travis

unread,
Oct 19, 2010, 10:02:38 AM10/19/10
to Embedded JavaScript
Cool...thank you both for the quick responses! I am actually using
the JMVC version currently, but with Dojo view components. It is
awesome...so much cleaner than the old string mess. Hopefully there
won't be any issues with using JMVC/JQuery alonside Dojo (it's a
mandate that we use Dojo at least for the view).
Reply all
Reply to author
Forward
0 new messages