Re: A webpy Templetor question

2015-07-13 Thread Chris Angelico
On Tue, Jul 14, 2015 at 9:13 AM, wrote: > #in my application.py: > def checknow(): > ... > return TN_str > > render = web.template.render('templates/',globals={'stat':checknow}) > > #in the template: > $def with(checknow) > ... ... > Test: $stat(checknow) You've effectively taken a refer

A webpy Templetor question

2015-07-13 Thread yongzhi . chen
Hi all, I want to display/update several metrics in a normal page (not in a webpy form). These metrics got updated every minute and were stored in a log file. I prepared a function to open that log file then analyze the last several lines to collect them. I want these metrics got updated in eve