From 30bf7ff587f70ce375ac1de0e3b510205bb5541f Mon Sep 17 00:00:00 2001 From: Christian Sarnataro Date: Sat, 6 Mar 2021 16:00:58 +0100 Subject: [PATCH] docs(readme): fixed a few typos in readme file (#2) --- README.md | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/README.md b/README.md index a555a45..ae14bbd 100644 --- a/README.md +++ b/README.md @@ -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 @@ -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 @@ -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) => { @@ -74,4 +74,4 @@ fastify.get('/', async (req, reply) => { ## License -[MIT](./LICENSE) \ No newline at end of file +[MIT](./LICENSE)