News for hackers. Stuff that matters.
Re:Elixir RAM and the Template of Doom by colbyh on Tuesday April 26, 2016 @06:24PM (#11576248)
it's entirely possible that I learned the framework pretty early on and not keeping up with small API changes has made it seem more complex than it needs to be.

I seem to remember earlier documentation using a lot of render calls directly in the controller, and add to that the fact that view functions were available to both controller modules and templates without any explicit inclusions muddied the waters a bit. your explanation makes total sense though and the documentation is now clearer than I remember so chalk it up to growing pains? haha.

and having templates that precompile to render functions is pretty magical, tbh. would personally love it if the view documentation reflected this on some level.

Re:Elixir RAM and the Template of Doom by chrismccord on Tuesday April 26, 2016 @07:24PM (#11576587)
Our view system has been like this from day one, so not growing pains, but it's possible our documentation wasn't as comprehensive early on.

> having templates that precompile to render functions is pretty magical, tbh. would personally love it if the view documentation reflected this on some level.

You mean like in our nicely formatted ExDocs? :) The docs walk you through similar examples as I've posted here, but go more in depth. https://hexdocs.pm/phoenix/Phoenix.View.html

Re:Elixir RAM and the Template of Doom by colbyh on Tuesday April 26, 2016 @07:59PM (#11576800)
bad choice of words, I meant more of us growing to understand the framework. and since you've had to answer these sorts of questions before I def feel a little less crazy: http://www.jeramysingleton.com/phoenix-templates-are-just-fu...

and thanks for keeping up work on the docs!