Skip to content
/ kio Public

Kio (Keep It Organized - inspired to Boilr) let manage simple template creation logic

License

Notifications You must be signed in to change notification settings

r3vit/kio

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Kio

Kio (Keep It Organized - inspired to Boilr) let manage simple template creation logic

  • Prepare your input file (with logic)
  • (Go Template) Magic
  • Profit!

Why

Because i need i simple template creation tool that follow a simple logic.

Installation

$ go get github.com/r3vit/kio/kio

Template logic

Choice 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" }}

Code

Simply (main.go):

package main

import "github.com/r3vit/kio/kio"

func main() {
	newTemplate := kio.NewKio("example", "input.yml", "output.txt")
	newTemplate.Execute()
}

About

Kio (Keep It Organized - inspired to Boilr) let manage simple template creation logic

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Languages