common css styles embedded in go templates
import "go.seankhliao.com/webstyle"
<!DOCTYPE html>
<html lang="en">
<head>
<!-- head things -->
<style>
{{ template "BaseCss" }}
</style>
</head>
<body>
<header>
{{ template "LogoHtml" }}
<!-- optional parts -->
</header>
<main>
<! --
main content
see base.css
-->
</main>
{{ template "FooterHtml" }}
</body>
</html>
<style>
{{ template "BaseCss" }}
</style>
assumes layout
<header>
{{ template "LogoHtml" }}
<!-- optional parts
<h2>A subtitle</h2>
<p>A tagline</p>
-->
</header>
{{ template "FooterHtml" }}
<style>
{{ template "LoaderCss" }}
</style>
{{ template "LoaderHtml" }}
edit html / css files
go generate