News for hackers. Stuff that matters.
Re:Use Phoenix Channels by spiderice on Wednesday August 04, 2021 @03:22PM (#28065089)
> the (IMHO) outdated layout->view model for displaying HTML

What is the modern model that you do use? Phoenix is very flexible and I'm wondering if it could easily be added manually.

Re:Use Phoenix Channels by conradfr on Wednesday August 04, 2021 @05:26PM (#28066560)
Template inheritance with blocks, as they do in Django or Symfony.

That way you don't have layouts anymore, but (usually) a base template that an action view overloads with its own content.

I know Ruby on Rails doesn't work like that so I guess that's why it didn't take in Phoenix (yet?).

Re:Use Phoenix Channels by porker on Thursday August 05, 2021 @01:16AM (#28070147)
Agreed. Once you're used to template inheritance it's hard to go back.
Re:Use Phoenix Channels by hifly on Wednesday August 04, 2021 @07:37PM (#28067838)
perhaps you could have a glance at "surface" and see if it's what you want? I think the new .heex format also gives the basis to build what you want even if surface isn't the answer for you?