mirror of
https://github.com/woutdp/live_svelte
synced 2026-05-24 09:28:21 +00:00
Remove attr :rendered and add slot :inner_block
This commit is contained in:
parent
40a0884390
commit
9b9f5fdf99
1 changed files with 3 additions and 1 deletions
|
|
@ -13,11 +13,13 @@ defmodule LiveSvelte do
|
|||
|
||||
attr(:props, :map, default: %{})
|
||||
attr(:name, :string)
|
||||
attr(:rendered, :boolean, default: false)
|
||||
|
||||
slot(:inner_block)
|
||||
|
||||
@doc """
|
||||
Renders a Svelte component on the server.
|
||||
"""
|
||||
@impl true
|
||||
def render(assigns) do
|
||||
~H"""
|
||||
<div>
|
||||
|
|
|
|||
Loading…
Reference in a new issue