1
0
mirror of https://github.com/lektor/lektor-website.git synced 2025-03-07 22:16:41 +01:00
2015-12-19 14:52:17 +01:00

21 lines
365 B
Markdown

title: pad
---
summary: A reference to the active database pad.
---
type: property
---
body:
To access the current pad from the context, this attribute can be used. It
refers to the active [Pad :ref](../../../db/pad/).
## Example
```python
from lektor.context import get_ctx
ctx = get_ctx()
for child in ctx.pad.root.children:
do_something_with(child)
```