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 type | Description | Default |
---|---|---|
ssr : bool | Server-side prerendering | Svelte.ssr |
island :Hash[String, String] | HTML attributes for is-land |
|
Example
Controller
ruby
render "view", locals: { svelte: { ssr: false } }