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