When implementing the Elxir Todo App and thinking about how to test the ElixirScript client code, one idea was to use an Elixir testing framework. Since the client code is also valid Elixir code, we could directly test it on the Beam VM instead of first translating it into JavaScript and then testing it in a Node.js environment.
Taking this idea one step further: Can we get server-side rendering without the need to run JavaScript code on our server and instead execute the client-side code directly inside our Phoenix app?
To some extent, the answer is: yes we can! This tutorial shows you how it is done and also investigates the limitations of this approach.