visionmedia/jade — Issue #470: Jade  #{errormsg} does not work: errormsg is not defined
Author: wggit
Created: 2012-01-12 17:53:44+00:00
State: open

I have Jade template with:

p Here is error
#{errormsg}

Node.js code:

res.render('index', {locals: {errormsg: "Error while login"} });

Tried several ways but getting error:

15| button(type='submit') Signin
16| p Here is error
> 17| #{errormsg}
18|
errormsg is not defined

Any suggestions appreciated.