dimanche 6 juillet 2014

Passing lots of values to template


Vote count:

0




How do i pass a lot of values to my template?


Documentation taken straight from the Mako Website:



from mako.template import Template

mytemplate = Template("hello, ${name}!")
print mytemplate.render(name="jack")


This solution works fine for like under 10 but i want to use up to 40 Variables.


Thank you!



asked 40 secs ago

Thomas

329





Aucun commentaire:

Enregistrer un commentaire