pad

To access the current pad from the context, this attribute can be used. It refers to the active Pad.

Example

from lektor.context import get_ctx

ctx = get_ctx()
for child in ctx.pad.root.children:
    do_something_with(child)

Comments