mirror of
https://github.com/woutdp/live_svelte
synced 2026-05-24 09:28:21 +00:00
Better formatting
This commit is contained in:
parent
40c95a89b3
commit
01aec2daee
1 changed files with 2 additions and 0 deletions
|
|
@ -46,12 +46,14 @@ defmodule LiveSvelte do
|
|||
ssr_code =
|
||||
if not connected?(socket) do
|
||||
props = Map.get(assigns, :props, %{})
|
||||
|
||||
slot =
|
||||
~H"""
|
||||
<%= render_slot(@inner_block) %>
|
||||
"""
|
||||
|> Phoenix.HTML.Safe.to_iodata()
|
||||
|> List.to_string()
|
||||
|
||||
ssr_render(assigns.name, props, slot)
|
||||
end
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue