Skip to content

shorrockin/plate

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

16 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

plate

Plate lets you quickly setup project files starting from templates defined in your ~/.plates folder.

Installation

go get github.com/pilu/plate

Usage

Create a template for a Go hello world app:

~/.plates/go-hello-world.plate:

{{define "main.go"}}
package main

import "fmt"

func main() {
	fmt.Println("{{ ask "greeting"}}")
}
{{end}}

{{define "main_test.go"}}
package main

import "testing"

func TestFoo(t *testing.T) {
}
{{end}}

Run plate . and choose the go-hello-world plate.

Plate will create two files, main.go and main_test.go.

Before creating the main.go file, it will ask for a value for the variable greeting.

Author

About

Project/files generator based on application templates

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Go 98.0%
  • Makefile 2.0%