hi, I just found a problem regarding ur question. if i pass a string from the py file to the index.html and the use var to pass the string from index.html to the base.html. it is totally ok!
but if i pass a list, it returns a unicode in the base.html. that is fking wield! cheers! fzhao On Fri, Jul 12, 2013 at 2:50 PM, Feifei Zhao <[email protected]>wrote: > dude, it is the same! > > u can firstly pass the varilables from python code to the page u r gonna > render, and then use the code i described above to pass the variables from > the rendered page to the base.html!!! > > cheers! > > > > On Fri, Jul 12, 2013 at 2:45 PM, <[email protected]> wrote: > >> Today's Topic Summary >> >> Group: http://groups.google.com/group/webpy/topics >> >> - Digest for [email protected] - 4 Messages in 1 >> Topic<#13fd1a570e5d1852_13fd1a0ecb902e88_group_thread_0>[2 Updates] >> - Python3 migration<#13fd1a570e5d1852_13fd1a0ecb902e88_group_thread_1>[1 >> Update] >> >> Digest for [email protected] - 4 Messages in 1 >> Topic<http://groups.google.com/group/webpy/t/e4e4bdfbe0e294fe> >> >> Feifei Zhao <[email protected]> Jul 11 08:34PM +0800 >> >> I guess ur problem is to pass variables from the templates pages to >> the >> base.html. >> this is my solution: >> >> for example: >> in the index.html, u can define a variable as below >> $var title: index >> >> and in the base.html, u can use it as below: >> >> $if page.title == 'index': >> do sth. >> >> >> cheers! >> fzhao >> >> >> >> >> >> >> [email protected] Jul 12 06:27AM +0200 >> >> No, my problem is pass variables from python code (code.py) to the >> base.html. >> >> Dne 2013-07-11 14:34, Feifei Zhao napsal: >> >> >> >> Python3 migration<http://groups.google.com/group/webpy/t/36f0ea2841043042> >> >> Tomas Schertel <[email protected]> Jul 11 08:04AM -0700 >> >> Hi guys. >> Is there someone who wanna help in this job? >> >> On Saturday, 15 June 2013 22:44:22 UTC-3, Anand wrote: >> >> >> >> -- >> You received this message because you are subscribed to the Google Groups >> "web.py" group. >> To unsubscribe from this group and stop receiving emails from it, send an >> email to [email protected]. >> To post to this group, send email to [email protected]. >> Visit this group at http://groups.google.com/group/webpy. >> For more options, visit https://groups.google.com/groups/opt_out. >> >> >> > > -- You received this message because you are subscribed to the Google Groups "web.py" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To post to this group, send email to [email protected]. Visit this group at http://groups.google.com/group/webpy. For more options, visit https://groups.google.com/groups/opt_out.
