Skip to content

Local

For per-render options, we use a set of render locals underneath the svelte hash.

Locals are always the highest precedence of config.

Server-side prerendering is not overridable per component, it is on a per render basis only.

Due to limitations in the Svelte Rollup plugin, we cannot change how each component renders individually when imported by a view.

To follow updates on this, see #10

Options

Option with typeDescriptionDefault
ssr: boolServer-side prerenderingSvelte.ssr
island:
Hash[String, String]
HTML attributes for
is-land
{
"on:visible": "",
"on:idle": ""
}

Example

Controller

ruby
render "view", locals: { svelte: { ssr: false } }