Answer the question
In order to leave comments, you need to log in
Shortening JADE templating code?
if user.familyName
input.txt#familyName(type="text",value="#{user.familyName}" name="familyName" ,required ,placeholder="Введите Фамилию")
else
input.txt#familyName(type="text",name="familyName" ,required ,placeholder="Введите Фамилию")
Answer the question
In order to leave comments, you need to log in
input.txt#familyName(value="#{user ? user.familyName : ''}", type="text", name="familyName", required, placeholder="Введите Фамилию")
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question