-
Notifications
You must be signed in to change notification settings - Fork 10
Open
Labels
Description
Translation Update Required
The upstream documentation has been updated. Please review the changes and update the translation accordingly.
File: turbo/handbook/page_refreshes.md
Current translated commit: 0b2c287
Latest upstream commit: 17e5033
Diff
Click to expand diff
diff --git a/_source/handbook/03_page_refreshes.md b/_source/handbook/03_page_refreshes.md
index 74daa71..e3aa25f 100644
--- a/_source/handbook/03_page_refreshes.md
+++ b/_source/handbook/03_page_refreshes.md
@@ -22,7 +22,7 @@ You can configure how Turbo handles page refresh with a `<meta name="turbo-refre
</head>
```
-The possible values are `morph` or `replace` (the default). When it is `morph,` when a page refresh happens, instead of replacing the page's `<body>,` Turbo will only update the DOM elements that have changed, keeping the rest untouched. This approach delivers better sensations because it keeps the screen state.
+The possible values are `morph` or `replace` (the default). When it is `morph,` when a page refresh happens, instead of replacing the page's `<body>` contents, Turbo will only update the DOM elements that have changed, keeping the rest untouched. This approach delivers better sensations because it keeps the screen state.
Under the hood, Turbo uses the fantastic [idiomorph library](https://github.com/bigskysoftware/idiomorph).
@@ -52,8 +52,7 @@ Sometimes, you want to ignore certain elements while morphing. For example, you
You can use [turbo frames](/handbook/frames.html) to define regions in your screen that will get reloaded using morphing when a page refresh happens. To do so, you must flag those frames with `refresh="morph"`.
```html
-<turbo-frame id="my-frame" refresh="morph">
- ...
+<turbo-frame id="my-frame" refresh="morph" src="/my_frame">
</turbo-frame>
```
How to Update
- Fork this repository
- Update the translation in
turbo/handbook/page_refreshes.md - Update the
commitfield in the front matter to17e5033 - Create a Pull Request with your changes