can anyone help me in developing a simple webpage in jinja2

Satabdi Mukherjee satamukh at gmail.com
Fri Apr 5 18:41:54 EDT 2013


i am a rookie in python and i am trying to develop a simple webpage using jinja2. can anyone please help me how to do that 
i am trying in this way but showing invalid syntax error

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN">
<html lang="en">
<head>
    <title>My Webpage</title>
</head>
<body>
    <ul id="navigation">
    {% for item in navigation %}
        <li><a href="{{ item.href }}">{{ item.caption }}</a></li>
    {% endfor %}
    </ul>

    <h1>My Webpage</h1>
    {{ a_variable }}
</body>
</html>



More information about the Python-list mailing list