Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ReferenceError: EJS is not defined #221

Open
mKontakis opened this issue Sep 30, 2016 · 2 comments
Open

ReferenceError: EJS is not defined #221

mKontakis opened this issue Sep 30, 2016 · 2 comments

Comments

@mKontakis
Copy link

I am trying to update an element on the ejs file.

I try to do it like this:

var ejsFile= new EJS({url: 'views/profile.ejs'}).update('divResults', response);

on top of the file i have this

var ejs = require('ejs');

although i get ReferenceError: EJS is not defined. Any ideas?

@mde
Copy link
Collaborator

mde commented Sep 30, 2016

You are probably looking at docs for the wrong EJS. (There are multiple projects.) In addition, this EJS project is no longer active. The current version of EJS lives here: github.com/mde/ejs Doc site is here: http://ejs.co/

@mKontakis
Copy link
Author

As i can see there is no update method anymore, do you kno how i can update the template?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants