~60 pages on a 1920/1080 monitor, and looks to first example, with stuff like this.
Finally the forth function render/1 receives the assigns argument which contains the :val state and renders the template using the @val template variable.
The render/1 function renders the template included in the function. The ~H""" syntax just means "treat this multiline string as a LiveView template" The ~H sigil is a macro included when the use Phoenix.LiveView is invoked at the top of the file.
The resource looks excellent, but I think it demonstrates that this is more complex than the equivalent Rails.
Which is not even a criticism of Phoenix - it obviously has a lot of power, and "scales right up TM". But I wouldn't think it was a "just do this" kind of a thing.
Comments
Here's a tutorial and the docs of forms: https://github.com/dwyl/phoenix-liveview-counter-tutorial https://hexdocs.pm/phoenix_live_view/form-bindings.html
I think the learning curve is not all that steep.
~60 pages on a 1920/1080 monitor, and looks to first example, with stuff like this.
The resource looks excellent, but I think it demonstrates that this is more complex than the equivalent Rails.Which is not even a criticism of Phoenix - it obviously has a lot of power, and "scales right up TM". But I wouldn't think it was a "just do this" kind of a thing.