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.
 
 
 
 

28 lines
638 B

package main
import (
"fmt"
"os"
)
const rawFolderPath = "./webInput"
const newFolderPath = "./webOutput"
const konstruiConfigFile = "konstruiConfig.json"
func main() {
c.Green("getting files from /webInput")
c.Green("getting conifg from file konstruiConfig.json")
//READ CONFIG: konstruiConfig.json
readKonstruiConfig(rawFolderPath + "/" + konstruiConfigFile)
c.Green("configuration:")
fmt.Println(konstruiConfig)
c.Green("templating")
//create directory webOutput
_ = os.Mkdir("webOutput", os.ModePerm)
//DO TEMPLATING
startTemplating(rawFolderPath, newFolderPath)
c.Green("webpage finished, files at /webOutput")
}