Is it possible to assign a Javascript variable in a script in Go HTML template to a template variable?

前端 未结 0 1789
小鲜肉
小鲜肉 2021-01-22 11:52

I have a web page using Golang html/template module and I have a template boolean variable

{{$variable := .thing}}

and I have an if and else branch th

相关标签:
回答
  • 消灭零回复
提交回复
热议问题