Started using my super-saiyan-god tool but I need to rework the repo so it supports the tool style for go get.

This commit is contained in:
Zed A. Shaw 2025-08-02 10:52:04 -04:00
parent 1da2af82f4
commit 19a2a85c10
7 changed files with 42 additions and 56 deletions

View file

@ -1,25 +0,0 @@
package main
import (
"log"
"flag"
"zedshaw.games/webapp/common"
)
type config struct {
source string
target string
layouts string
}
func main() {
var cfg config
flag.StringVar(&cfg.source, "source", "./pages", "The templates to load and process.")
flag.StringVar(&cfg.target, "target", "./public", "The target to write the resulting content.")
flag.StringVar(&cfg.layouts, "layouts", "layouts/main", "The default layout to use, must be a template in <source>")
log.Println("Generating site from pages to public.")
common.RenderPages(cfg.source, cfg.target, cfg.layouts)
}