Hi folks. I have a simple index.html
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Hotwire test</title>
<script src="https://cdn.skypack.dev/@hotwired/turbo?min" type="module"></script>
</head>
<body>
<turbo-frame id="messages" src="/messages">
<div><strong>no messages</strong></div>
</turbo-frame>
</body>
</html>
and a /messages handler returns smth like this with content type in header
<turbo-frame id="messages">
<div>one</div><div>two</div><div>three</div>
</turbo-frame>
I really don’t understand why the page changes only if a /messages handler returns:
<html>
<turbo-frame id="messages">
{{range .Messages}}<div>{{ . }}</div>{{end}}
</turbo-frame>
</html>