View Source LiveVue.SSR behaviour (LiveVue v0.4.1)
A behaviour for rendering Vue components server-side.
To define a custom renderer, change the application config in config.exs
:
config :live_vue, ssr_module: MyCustomSSRModule
Exposes a telemetry span for each render under key [:live_vue, :ssr]
Summary
Types
@type component_name() :: String.t()
A render response which should have shape
%{ html: string, preloadLinks: string }
Callbacks
@callback render(component_name(), props(), slots()) :: render_response() | no_return()
Functions
@spec render(component_name(), props(), slots()) :: render_response() | no_return()