replace slippers with django-cotton
main reason: slippers cannot pass request via context inside its components, making it annoying to use template takes that take request. more reasons: not actively worked on, no named slots, having to define components in components.yaml + new components do not get registered without restarting server
This commit is contained in:
@ -17,10 +17,10 @@ def Popover(
|
||||
result = mark_safe(
|
||||
str(content)
|
||||
+ render_to_string(
|
||||
"components/popover.html",
|
||||
"cotton/popover.html",
|
||||
{
|
||||
"id": id,
|
||||
"children": popover_content,
|
||||
"slot": popover_content,
|
||||
},
|
||||
)
|
||||
)
|
||||
|
Reference in New Issue
Block a user