slime icon indicating copy to clipboard operation
slime copied to clipboard

Possible to support .leex templates?

Open solars opened this issue 6 years ago • 3 comments

Hi there,

I wondered if it is possible to support .leex (liveview) templates as well?

Thanks!

solars avatar Apr 19 '19 07:04 solars

@solars I don't see why not but we may need to revise the phoenix library. Would you be interested in taking a shot at that?

doomspork avatar May 01 '19 01:05 doomspork

I'd like to - but I'm only starting with Elixir

solars avatar May 01 '19 19:05 solars

This could be really nice to have.

When using slime with Phoenix Liveview, LiveView sends the entire template to the client on every re-render instead of the template diff (which is supported for .leex).

See also the example in the Phoenix LiveView docs: https://hexdocs.pm/phoenix_live_view/Phoenix.LiveView.html#module-example

skovmand avatar Nov 13 '19 12:11 skovmand