I have a .thtml file:
...
<div>
<p>{{.Something}}</p> <!-- It works here! -->
{{range ...}}
<p>{{.Something}}</p> <!-- It DOESN't work here! -->
{{end}}
</div>
...
If I use the value of .Something
inside the .thtml file it works fine, but it doesn't work if it is used in the same way inside a {{range ...}}
block.
How can I use it?