conditional statement must do
input(type='text', name='person[Name]', value= (person?(person.name?person.name:''):''))
however, in design we can always convey a person? therefore, no comparison is required. The code will be something like
input(type='text', name='person[Name]', value= person.name)
source share