Skip to content

Commit 1092bdd

Browse files
authored
style: remove trailing whitespace (#443)
1 parent 4938ce0 commit 1092bdd

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

README.md

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -103,18 +103,18 @@ fastify.listen({ port: 3000 }, (err) => {
103103
### Options
104104

105105
| Option | Description | Default |
106-
| ---------------------- | ----------- | ------- |
107-
| `engine` | **Required**. The template engine object - pass in the return value of `require('<engine>')` | |
106+
| ---------------------- | ----------- | ------- |
107+
| `engine` | **Required**. The template engine object - pass in the return value of `require('<engine>')` | |
108108
| `production` | Enables caching of template files and render functions | `NODE_ENV === "production"` |
109109
| `maxCache` | In `production` mode, maximum number of cached template files and render functions | `100` |
110110
| `defaultContext` | Template variables available to all views. Variables provided on render have precedence and will **override** this if they have the same name. <br><br>Example: `{ siteName: "MyAwesomeSite" }` | `{}` |
111111
| `propertyName` | The property that should be used to decorate `reply` and `fastify` <br><br>E.g. `reply.view()` and `fastify.view()` where `"view"` is the property name | `"view"` |
112-
| `asyncPropertyName` | The property that should be used to decorate `reply` for async handler <br><br>Defaults to `${propertyName}Async` if `propertyName` is defined | `"viewAsync"` |
112+
| `asyncPropertyName` | The property that should be used to decorate `reply` for async handler <br><br>Defaults to `${propertyName}Async` if `propertyName` is defined | `"viewAsync"` |
113113
| `root` | The root path of your templates folder. The template name or path passed to the render function will be resolved relative to this path | `"./"` |
114114
| `charset` | Default charset used when setting `Content-Type` header | `"utf-8"` |
115115
| `includeViewExtension` | Automatically append the default extension for the used template engine **if omitted from the template name** . So instead of `template.hbs`, just `template` can be used | `false` |
116116
| `viewExt` | Override the default extension for a given template engine. This has precedence over `includeViewExtension` and will lead to the same behavior, just with a custom extension. <br><br>Example: `"handlebars"` | `""` |
117-
| `layout` | See [Layouts](#layouts) <br><br>This option lets you specify a global layout file to be used when rendering your templates. Settings like `root` or `viewExt` apply as for any other template file. <br><br>Example: `./templates/layouts/main.hbs` | |
117+
| `layout` | See [Layouts](#layouts) <br><br>This option lets you specify a global layout file to be used when rendering your templates. Settings like `root` or `viewExt` apply as for any other template file. <br><br>Example: `./templates/layouts/main.hbs` | |
118118
| `options` | See [Engine-specific settings](#engine-specific-settings) | `{}` |
119119

120120
### Example
@@ -154,7 +154,7 @@ fastify.register(require("@fastify/view"), {
154154
Handlebars: {{{ body }}}
155155
ETA/doT: <%~ it.body %>
156156
-->
157-
<%- body %>
157+
<%- body %>
158158
<br/>
159159
</body>
160160
</html>

0 commit comments

Comments
 (0)