Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

docs(readme): fixed a few typos in readme file #2

Merged
merged 1 commit into from
Mar 6, 2021
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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)