1

“render._keywords['globals']['render'] = render”在 web.py 骨架代码中是什么意思? http://webpy.org/skeleton/0.3

4

1 回答 1

2

It means that render will be accesible inside templates to be able to render nested templates.

It is then used in templates/listing.html to render item template

$def with (items)

$for item in items:
    $:render.item(item)
于 2013-03-12T10:24:49.387 回答