html/template requires template names to be string literals, not field
accesses. Use {{if eq .Template "videos"}} to branch and call the
appropriate template by literal name.
|
||
|---|---|---|
| .. | ||
| static | ||
| templates | ||
| views.go | ||
| views_test.go | ||
html/template requires template names to be string literals, not field
accesses. Use {{if eq .Template "videos"}} to branch and call the
appropriate template by literal name.
|
||
|---|---|---|
| .. | ||
| static | ||
| templates | ||
| views.go | ||
| views_test.go | ||