Hi all,
I'm trying to wrote, on my "index.html" a line where appear two
variables, but I'm not able to do the work. On the output I receive
always the "repr" of the object, but not its value. The code it's like
this:

class index:
  def GET:
    s = Storage()
    s.the_dict = {a=1}
    s.k = "a"
    return render.index(s)

-- index.html

$def with(data):

<html>
<body>
$data.the_dict[$data.k]
</body>
</html>

--

End I want the value "1" returned.
Can I do this?

Thanks,
Michele
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"web.py" 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/webpy?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to