Phoenix LiveView 1.2 Released

TL;DR

Phoenix LiveView 1.2 has been released, adding support for colocated CSS, new compile-time features, and minor improvements. The update enhances component styling and developer flexibility.

Phoenix LiveView 1.2 is now available, introducing colocated CSS support and several small but impactful enhancements for Elixir developers working with real-time web applications.

The release of Phoenix LiveView 1.2 builds on previous versions by adding colocated CSS, allowing developers to embed and scope CSS directly within HEEx templates. This feature leverages the experimental @scope rule, enabling CSS rules to be limited to specific component boundaries. The update also includes new compile-time configurations, such as the optional injection of phx-r attributes for template boundary identification, and improvements like automatic encoding of Phoenix.LiveView.JS structs during push events.

Other minor enhancements include customizable HEEx debug annotations, configurable test warnings, and a new TagFormatter behaviour for formatting

You May Also Like

Photo GIMP – A Patch for GIMP 3 for Photoshop Users

A new community patch, PhotoGIMP, transforms GIMP 3 to resemble Photoshop, making it easier for users switching from Adobe’s software. Available for Linux, Windows, and macOS.

A 10 year old Xeon is all you need

A 2016-era Intel Xeon E5-2620 v4 successfully runs a large language model with optimized settings, challenging assumptions about hardware requirements.

Native all the way, until you need text

Developers struggle with native SDKs for complex text rendering, leading many to turn to web-based solutions like Electron for chat apps with Markdown.

Quack: The DuckDB Client-Server Protocol

DuckDB introduces Quack, a new lightweight protocol enabling multiple instances to communicate in client-server setups, expanding its use cases.