About this question
I am currently engaged in a particular task that is related to working on a web-based application that displays a profile of a user. I need to show different messages which should be based on whether the user has provided an email address or not. How can I use the Jinja2 templating for writing the code for displaying the following messages:
- If the user has provided an email address, display “Your email is (user email)
- If the user has not provided an email address, display, “You have not provided your email address”.