Then make it accessible to the templates like this:
def myfunc(lol):
pass
render = web.template.render('templates/', globals={'myfunc':myfunc})
> --
> You received this message because you are subscribed to the Google Groups
> "web.py" group.
> To view this discussion on the web visit
> https://groups.google.com/d/msg/webpy/-/hLiDxn3Y5XkJ.
> To post to this group, send email to we...@googlegroups.com.
> To unsubscribe from this group, send email to webpy+un...@googlegroups.com.
> For more options, visit this group at http://groups.google.com/group/webpy?hl=en.
--
http://noobz.cc/
http://digitalfolklore.org/
http://contemporary-home-computing.org/1tb/