package views import ( "strings" "github.com/a-h/templ" "github.com/spf13/viper" ) func pathTo(path ...string) templ.SafeURL { return templ.SafeURL(viper.GetString("base_path") + "/" + strings.TrimPrefix(strings.Join(path, "/"), "/")) }