From 67875ccf10b3c78b2736ba04ca8cb4b6d7c60b41 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Bj=C3=B6rn=20Fromme?= Date: Sun, 13 Sep 2026 14:14:27 +0200 Subject: [PATCH] feat: bootstrap htmx --- assets/app.js | 29 ++++++++++++++++++++++------- 1 file changed, 22 insertions(+), 7 deletions(-) diff --git a/assets/app.js b/assets/app.js index e56396c..3cb7ffc 100644 --- a/assets/app.js +++ b/assets/app.js @@ -1,10 +1,25 @@ import './stimulus_bootstrap.js'; -/* - * Welcome to your app's main JavaScript file! - * - * This file will be included onto the page via the importmap() Twig function, - * which should already be in your base.html.twig. - */ import './styles/app.css'; -console.log('This log comes from assets/app.js - welcome to AssetMapper! 🎉'); +import htmx from 'htmx.org'; + +// Exposed so inline `hx-on:` handlers and Stimulus controllers can reach htmx. +window.htmx = htmx; + +// We never return