Skip to content

Creating views

Create .html.svelte views in your app instead of .html.erb - they work just like any other view.

actionview-svelte-handler will then compile and optionally prerender the component, then serve it to the client.

WARNING

This will make ERB helpers unavailable because Svelte is registered as a template handler, replacing ERB when it is used.