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

How to use express engine? #116

Open
Fraunhofer opened this issue Jan 16, 2015 · 1 comment
Open

How to use express engine? #116

Fraunhofer opened this issue Jan 16, 2015 · 1 comment

Comments

@Fraunhofer
Copy link

i used express and ejs. Now i use express.io but not working

app.engine('html', require('ejs').renderFile);

app.all('/', function(req, res) {
res.render(__dirname + '/public/views/main_template.html');
});

result is : "<%include includes/header.html%>"

@oimel
Copy link

oimel commented Mar 5, 2015

app.set('view engine', 'ejs');
does the job for me.

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