fnobi / php-express

enable express server to exec php.
36 stars 15 forks source link

use with template engine #7

Open jenokizm opened 9 years ago

jenokizm commented 9 years ago

your module can be used with template engines?

app.engine('php', phpExpress.engine);
app.set('view engine', 'php');
app.engine('.html', require('ejs').__express);
app.set('views', __dirname + '/views');
app.set('view engine', 'html');
grimurd commented 9 years ago

I'm having the same problem. Using nunjucks, if i don't register nunjucks everything works fine. However when i do the php doesn't get executed.