simple_alpine

Fluent Alpine.js Attribute Builder for Eiffel

v1.0.0 MIT

Overview

simple_alpine provides fluent Alpine.js attribute building for Eiffel web applications. Extends simple_htmx to add Alpine.js directives, enabling rich client-side interactivity.

Part of the simple_* ecosystem of focused, single-purpose Eiffel libraries.

Quick Start

Installation

Add to your ECF file:

<library name="simple_alpine" location="$SIMPLE_ALPINE/simple_alpine.ecf"/>

Basic Usage

local
    div: ALPINE_DIV
do
    create div.make
    div.x_data ("{ open: false }")
    div.x_show ("open")
    div.x_on_click ("open = !open")
    div.set_text ("Click me")
end

Features