Server-Side Rendering with Elixir/ElixirScript - An experiment on running ElixirScripts directly on the server to render HTML pages

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.

Read more...

Recent Posts

Tech Radar


Sunrise Alarm Clock - Update


Spin FV-1 based effects module for Eurorack systems


3D printed panel for a Raspberry Pi with 7" Touch Display


Archive

2024 (1)

2018 (1)

2017 (8)

2016 (4)

2015 (1)

2014 (3)