我想在我的用戶配置文件中將輸入值設置爲它的db值(如果它們存在)。我試圖用參數傳遞的玉石,但我得到了以下錯誤:使用Jade模板當地人設置輸入值
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
但是當我使這個templat我發送電子郵件作爲當地人
res.redirect('/profile',{locals :{email:"profile.email"}});
我想也設置輸入值to!{email}和#{email}但沒有任何作用。任何幫助?
感謝, Feras
我試過重定向但我得到了同樣的錯誤。 –