https://github.com/gravityblast/plate
Project/files generator based on application templates
https://github.com/gravityblast/plate
Last synced: about 1 year ago
JSON representation
Project/files generator based on application templates
- Host: GitHub
- URL: https://github.com/gravityblast/plate
- Owner: gravityblast
- License: mit
- Created: 2014-10-30T17:59:52.000Z (over 11 years ago)
- Default Branch: master
- Last Pushed: 2014-11-20T02:18:46.000Z (over 11 years ago)
- Last Synced: 2025-04-12T04:09:06.814Z (about 1 year ago)
- Language: Go
- Homepage:
- Size: 219 KB
- Stars: 11
- Watchers: 4
- Forks: 2
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# 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
* [Andrea Franz](http://gravityblast.com)