an example of how to embed static assets into a distributable go binary.
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

13 lines
321 B

  1. {{ define "base" }}
  2. <!DOCTYPE html>
  3. <html>
  4. <head>
  5. <meta content="width=device-width, initial-scale=1" name="viewport">
  6. <title>ωτφ</title>
  7. <link rel="stylesheet" type="text/css" href="/static/css/sm.css">
  8. </head>
  9. <body>
  10. {{ template "body" . }}
  11. </body>
  12. </html>
  13. {{ end }}