W
Wells
Is it possible to pass a list to the Template.substitute method and
use that in the template, like so..
g = string.Template(gametemplate)
print g.substitute(recap = "none", winner = game["winner"], loser =
game["loser"])
Then in the template...
<b>winner.team
Where winner.team would be the value of game["winner"]["team"].
Thanks!
use that in the template, like so..
g = string.Template(gametemplate)
print g.substitute(recap = "none", winner = game["winner"], loser =
game["loser"])
Then in the template...
<b>winner.team
Where winner.team would be the value of game["winner"]["team"].
Thanks!