From 17f5778fc435e2548c366f932482205901534098 Mon Sep 17 00:00:00 2001 From: Michael Yan Date: Sat, 11 May 2024 18:30:15 +0800 Subject: [PATCH] Update README --- README.md | 19 ++++++++++++++++++- 1 file changed, 18 insertions(+), 1 deletion(-) diff --git a/README.md b/README.md index fe1de2b..34e5945 100644 --- a/README.md +++ b/README.md @@ -92,9 +92,26 @@ You could supply a `show.htmx.gsp` file to render the HTMX: ``` +If you use `asset-pipeline` plugin, this plugin already includes `htmx.js`, `_hyperscript.js`, +so you can add `htmx.js` to the `app/assets/application.js`, + +```javascript +//= require _hyperscript +//= require htmx +//= require_self +``` + +Also, you can use `asset` tag in the GSP, + +```HTML + + +``` + + ## Example -* [Grace Htmx TodoMVC](https://github.com/grace-guides/grace-htmx-todomvc) +* [Grace Htmx TodoMVC](https://github.com/grace-guides/gs-htmx-todomvc) ## Development