mirror of
https://github.com/django-components/django-components.git
synced 2025-11-18 06:06:14 +00:00
Deployed c37628de to dev with MkDocs 1.6.1 and mike 2.1.3
This commit is contained in:
parent
c8b69118ed
commit
bd9f3c8141
159 changed files with 1378 additions and 1239 deletions
|
|
@ -1,5 +1,3 @@
|
|||
from typing import NamedTuple
|
||||
|
||||
from django_components import Component, register, types
|
||||
|
||||
DESCRIPTION = "100 nested components? Not a problem! Handle recursive rendering out of the box."
|
||||
|
|
@ -7,7 +5,7 @@ DESCRIPTION = "100 nested components? Not a problem! Handle recursive rendering
|
|||
|
||||
@register("recursion")
|
||||
class Recursion(Component):
|
||||
class Kwargs(NamedTuple):
|
||||
class Kwargs:
|
||||
current_depth: int = 0
|
||||
|
||||
def get_template_data(self, args, kwargs: Kwargs, slots, context):
|
||||
|
|
|
|||
File diff suppressed because one or more lines are too long
Loading…
Add table
Add a link
Reference in a new issue