Skip to content

Commit

Permalink
docs(readme): fixed a few typos in readme file (#2)
Browse files Browse the repository at this point in the history
  • Loading branch information
csarnataro authored Mar 6, 2021
1 parent c7ff336 commit 30bf7ff
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
Do you enjoy writing applications with the [hotwire](http://hotwire.dev) pattern?
We got you covered!

This plugin adds all the necwessary utilis to Fastify for creating a fullstack application
This plugin adds all the necessary utilities to Fastify for creating a fullstack application
with Hotwire. Take a look at the [example](./example) folder to see it in action!

## Install
Expand All @@ -18,7 +18,7 @@ npm i fastify-hotwire

Add the plugin to Fastify, with at least two options:

- `templates`: the location of your folder with your replates
- `templates`: the location of your folder with your templates
- `filename`: the location of your html generator, any templating language is supported!

```js
Expand All @@ -41,7 +41,7 @@ module.exports = ({ file, data, fragment }) => {

### `reply.render(filename, data)`

Gnerates the entire intial page, it calls the worker with `fragment: false`
Generates the entire initial page, it calls the worker with `fragment: false`

```js
fastify.get('/', async (req, reply) => {
Expand Down Expand Up @@ -74,4 +74,4 @@ fastify.get('/', async (req, reply) => {

## License

[MIT](./LICENSE)
[MIT](./LICENSE)

0 comments on commit 30bf7ff

Please sign in to comment.