[mod_python] Joining template objects

Dagur Páll Ammendrup dagurp at heimsnet.is
Sat Nov 6 17:12:57 EST 2004

I have a complete beginners question for you.
Here's a stupid example but I hope it explains what I'm trying to do. 
Let's say I have this template


   Here is a list of people
   <%= people %>

Then there's another template:


   Name: <%= name %>
   Occupation: <%= job %>
   Email <%= email %>

Now let's say I want to use person.html on a list of several people and 
I use psp.PSP() to do it.
How can I join the objects together and put them into the single 
'people' varible for the outer 'people.html' template so I get this?

   Here is a list of people
   Name: John
   Occupation: programmer
   Email john at microsoft.com

   Name: Steven
   Occupation: Student
   Email steven at fbi.com




More information about the Mod_python mailing list