Notes on learning Elixir and Phoenix
Views / Templates
Biggest difference from Rails?
Unlike Rails, where rendering is almost always performed by a template file, the responsibility of rendering a response in Phoenix lies with a view module (that typically corresponds to the current controller module.) This view module will typically offer a whole bunch of
render functions (matching different parameters, first and foremost the template name.) Templates (found in
web/templates/) will directly compile into such functions.