I need to perform variable assignment in a django template.
Just to try the viability, I tested it out with the simple django
template version of the guestbook example. But python/eclipse gave me
an error:
<html>
<body>
{% for greeting in greetings %}
{% if greeting.author %}
<b>{{ greeting.author.nickname }}</b> wrote:
{% else %}
An anonymous person wrote:
{% endif %}
{% x = greeting.content %}
{% endfor %}
</body>
</html>
Could someone tell me (I have lots of experience and love for java and
JSP) where I have gone wrong in performing the assignment of x?
How to perform var assignment in django template?
Cannot be done? Then django is lousy. If so, could someone point me to
a better python template technology?
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"Google App Engine" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at
http://groups.google.com/group/google-appengine?hl=en
-~----------~----~----~----~------~----~------~--~---