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.
|
||
|---|---|---|
| .. | ||
| autocomplete | ||
| cache | ||
| config | ||
| contracts | ||
| engines | ||
| httpapi | ||
| middleware | ||
| search | ||
| upstream | ||
| views | ||