5 ms·
I remember reading Phoenix had templating (eg HTML). Is Erlang/Elixir good for this? Or is it something better suited for NIF?
by da02 10y ago
I remember reading Phoenix had templating (eg HTML). Is Erlang/Elixir good for this? Or is it something better suited for NIF?
- strange_aeons 10y agoPhoenix uses IO lists for very efficient templating. Read more here https://www.bignerdranch.com/blog/elixir-and-io-lists-part-1-building-output-efficiently/ https://www.bignerdranch.com/blog/elixir-and-io-lists-part-1... and in part 2.
- da02 10y agoThanks. This helps a lot even though I don't use Elixir or Erlang.
- yellowapple 10y agoElixir itself ships with a module called EEx that should feel very familiar if you've used Ruby's ERB. There's also a HAML rendering library (Calliope) among others.