I want to set input value in my user profile to its db values if they are 
exists. I tried to use parameter passing in jade for this but I got the 
following error:

referenceError: /Users/Feras/Sites/wowito/views/profile.jade:13
    11|         fieldset(data-role='controlgroup') 
    12|          label.label(for='email')  EMail
  > 13|          input.input(id='email',type='text',value=email,name='email') 
    14|          label.label(for='firstName')  First Name
    15|          
input.input(id='firstName',type='text',value='',name='firstName') 
    16|          label.label(for='lastName')  Last Name

email is not defined

but when I render this templat I send it email as locals

res.redirect('/profile',{locals :{email:"profile.email"}});

I tried also to set input value to !{email} and #{email} but nothing works. 
any help?

Thanks, 

Feras

-- 
Job Board: http://jobs.nodejs.org/
Posting guidelines: 
https://github.com/joyent/node/wiki/Mailing-List-Posting-Guidelines
You received this message because you are subscribed to the Google
Groups "nodejs" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/nodejs?hl=en?hl=en

Reply via email to