Kio (Keep It Organized - inspired to Boilr) let manage simple template creation logic
- Prepare your input file (with logic)
- (Go Template) Magic
- Profit!
Because i need i simple template creation tool that follow a simple logic.
$ go get github.com/r3vit/kio/kioChoice between n-options:
{{ choose "referenceName" "option1" "option2" "..." "optionN"}}Show (yes/no):
{{ if isset "referenceName"}}
//show if referenceName is set (0 or 1)
{{ end }}Custom:
{{ custom "referenceName" }}Simply (main.go):
package main
import "github.com/r3vit/kio/kio"
func main() {
newTemplate := kio.NewKio("example", "input.yml", "output.txt")
newTemplate.Execute()
}