Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP

Loading…

Doesn't work with require.js #57

Closed
soggie opened this Issue · 2 comments

2 participants

@soggie

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
Owner
tj commented

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

@soggie

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.