Andrew Timberlake Andrew Timberlake

Hi, I’m Andrew, a programmer and entrepreneur from South Africa,
building Mailcast for taking control of your email.
Thanks for visiting and reading.


Multiple hooks per element in Phoenix LiveView

Phoenix LiveView only supports one hook per element. This article shows how to delegate out to other hooks.

27 Mar 2025

Add environment config to your Phoenix JavaScript

How to change your javascript based on the elixir config environment.

07 Mar 2025

See what changed during a LiveView update

A javascript snippet to highlight the elemnts on the page that change.

06 Mar 2025

How to provide undo delete with Phoenix LiveView

Add the ability to provide an undo option after a user takes an action within Phoenix LiveView.

21 Feb 2025

Use a view model with Phoenix LiveView

How to use a view model to decorate records with UI state in Phoenix LiveView.

14 Feb 2025

Improve your LiveView testing with test specific attributes

Instead of coupling your tests to the HTML structure of your LiveView, use test specific attributes to make your tests more robust. Test specific attributes can be removed to keep your production HTML clean.

30 Jan 2025

Set a flash message from a LiveComponent

How to use put_flash/3 in a LiveComponent without navigation.

21 Jan 2025

Shorthand maps for Elixir

Javascript has shorthand proprty names for objects. Shorthand is a library that provides a similar feature for Elixir.

01 Nov 2024

Render heex templates directly from a Phoenix controller

Sometimes a controller and a view and a template is just too much. Here's a way to embed heex templates within your Phoenix controllers.

07 Oct 2024

How to get a letsencrypt dev certificate on a mac

Get a development SSL certificate from LetsEncrypt for local development.

03 Sep 2024
dev, mac,

Next page