Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/ejilay/skabelon
go template file processor
https://github.com/ejilay/skabelon
docker go golang nginx-configuration preprocessing-files
Last synced: about 2 months ago
JSON representation
go template file processor
- Host: GitHub
- URL: https://github.com/ejilay/skabelon
- Owner: ejilay
- License: mit
- Created: 2017-06-22T14:37:50.000Z (over 7 years ago)
- Default Branch: master
- Last Pushed: 2017-06-23T16:20:53.000Z (over 7 years ago)
- Last Synced: 2024-06-20T17:42:01.813Z (7 months ago)
- Topics: docker, go, golang, nginx-configuration, preprocessing-files
- Language: Go
- Size: 3.91 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# SKABELON
Simple tool for preprocessing files with environment variables. May be useful for Docker containers run scripts for config files preprocessing.
Currently uses all available environment variables.
Usage:
```bash
$ ENV_VAR=value1 skabelon input.envtmpl output.conf
```For input file like this
```
The variable $ENV_VAR is {{ .ENV_VAR }} and $SHELL is {{ .SHELL }}
```Will be produced output
```
The variable $ENV_VAR is value1 and $SHELL is /bin/bash
```## IMPROVEMENTS
[x] Simple file processing
[ ] stdin to stdout processing
[ ] multiple file processing
[ ] multiple template support, nested templates
[ ] variables overrdiding and filtering