lektor-website/content/docs/api/build/context/pad/contents.lr

21 lines
365 B
Plaintext
Raw Normal View History

2015-12-19 14:52:17 +01:00
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)
```