docs: Split README (#775)

This commit is contained in:
Juro Oravec 2024-11-25 23:46:52 +01:00 committed by GitHub
parent f1a351f7f4
commit 4d5fecf3ee
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
36 changed files with 4118 additions and 11 deletions

View file

@ -139,6 +139,16 @@ class ComponentVars(NamedTuple):
</div>
{% endif %}
```
This is equivalent to checking if a given key is among the slot fills:
```py
class MyTable(Component):
def get_context_data(self, *args, **kwargs):
return {
"my_slot_filled": "my_slot" in self.input.slots
}
```
"""