Welcome to the Treehouse Community
Want to collaborate on code errors? Have bugs you need feedback on? Looking for an extra set of eyes on your latest project? Get support with fellow developers, designers, and programmers of all backgrounds and skill levels here with the Treehouse Community! While you're at it, check out some resources Treehouse students have shared here.
Looking to learn something new?
Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and join thousands of Treehouse students and alumni in the community today.
Start your free trialChavey Villegas
8,941 Pointsjinja2.exceptions.TemplateSyntaxError: tag name expected
I got this error after added all the code to the layout.html file. I still get the error even when I comment out the added code. The only way I can get rid of the error is to remove all the code. Any suggestions?
<!DOCTYPE html> <html> <head> <title>Character Generator</title> <link rel="stylesheet" href="/static/css/normalize.min.css"> <link rel="stylesheet" href="/static/css/main.css"> <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1"> <meta name="viewport" content="width=device-width, initial-scale=1"> </head> <body> <div class="wrap no-bottom messages"> {% with messages = get_flashed_messages() %} {% if messages %} <ul class="flashes"> {% for message in messages %} <li>{% {{ message }} %}</li> {% endfor %} </ul> {% endif %} {% endwith %} </div> {% block content %}{% endblock %} </body> </html>