Code Self Study Forum

Svelte + Phoenix (Elixir)

This project looks interesting:

Building web using Phoenix is fun. Creating component using Svelte is fun.

Imagine we can just create svelte component, save it as wizard.svelte inside our /assets/js/svelte and anytime we need it inside out layout, just call it like so:

<%= Sveltex.render "name_of_component", %{props_as_map: ""} %>

Sveltex does exactly this.

1 Like