Skip to content


Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP


Doesn't work with require.js #57

soggie opened this Issue · 2 comments

2 participants


I don't think this works with requirejs on the client-side, because require() is redefined here. Trying to require() it with requirejs returns an undefined.

tj commented

yeah we should do the same as jade and just wrap in a closure and return require('ejs')


That didn't work for me, unfortunately:

(function () {
  // original ejs code

  return require('ejs');

The above script led to requirejs notifying "Uncaught Error: Script Error".

@tj tj closed this in a2b4559
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Something went wrong with that request. Please try again.