Skip to content

Commit

Permalink
Update README
Browse files Browse the repository at this point in the history
  • Loading branch information
rainboyan committed May 11, 2024
1 parent 8f97cc9 commit 17f5778
Showing 1 changed file with 18 additions and 1 deletion.
19 changes: 18 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -92,9 +92,26 @@ You could supply a `show.htmx.gsp` file to render the HTMX:
</div>
```

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
<asset:javascript src="_hyperscript.js"/>
<asset:javascript src="htmx.js"/>
```


## Example

* [Grace Htmx TodoMVC](https://github.com/grace-guides/grace-htmx-todomvc)
* [Grace Htmx TodoMVC](https://github.com/grace-guides/gs-htmx-todomvc)

## Development

Expand Down

0 comments on commit 17f5778

Please sign in to comment.