Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/gravityblast/plate
Project/files generator based on application templates
https://github.com/gravityblast/plate
Last synced: about 10 hours 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 (about 10 years ago)
- Default Branch: master
- Last Pushed: 2014-11-20T02:18:46.000Z (almost 10 years ago)
- Last Synced: 2023-07-12T01:51:57.554Z (over 1 year ago)
- Language: Go
- Homepage:
- Size: 219 KB
- Stars: 9
- Watchers: 5
- 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 mainimport "fmt"
func main() {
fmt.Println("{{ ask "greeting"}}")
}
{{end}}{{define "main_test.go"}}
package mainimport "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)