templates.go 323 B

123456789101112131415
  1. package master_ui
  2. import (
  3. _ "embed"
  4. "html/template"
  5. )
  6. //go:embed master.html
  7. var masterHtml string
  8. //go:embed masterNewRaft.html
  9. var masterNewRaftHtml string
  10. var StatusTpl = template.Must(template.New("status").Parse(masterHtml))
  11. var StatusNewRaftTpl = template.Must(template.New("status").Parse(masterNewRaftHtml))