Skip to content

Commit 1cd7e0d

Browse files
committed
chore: add more info
1 parent b57ef91 commit 1cd7e0d

1 file changed

Lines changed: 4 additions & 0 deletions

File tree

versioned_docs/version-v2/guides/template-usage.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -59,6 +59,10 @@ func homeHandler(w http.ResponseWriter, r *http.Request) {
5959
}
6060
```
6161

62+
:::info
63+
If your template files are not showing up after you've created them and you are using live-reloading libraries like [Fresh](https://github.com/gravityblast/fresh) or [Air](https://github.com/air-verse/air), restart them. Also, don't forget to add `.tw` files to trigger live-reloading.
64+
:::
65+
6266
## Layouts
6367
Defining a layout in Textwire is very simple. You need to create a layout file anywhere inside of your `templates` directory. Many developers just create a `templates/layouts/` directory for different layouts because you might have different layouts like `main.tw.html`, `admin.tw.html`, `user.tw.html`.
6468

0 commit comments

Comments
 (0)