https://github.com/kamontat/tpr
Templates parser commandline interface
https://github.com/kamontat/tpr
json template-parser
Last synced: 3 months ago
JSON representation
Templates parser commandline interface
- Host: GitHub
- URL: https://github.com/kamontat/tpr
- Owner: kamontat
- Created: 2022-12-26T13:43:18.000Z (over 3 years ago)
- Default Branch: main
- Last Pushed: 2023-11-20T09:13:31.000Z (over 2 years ago)
- Last Synced: 2025-12-18T18:21:50.552Z (5 months ago)
- Topics: json, template-parser
- Language: Go
- Homepage:
- Size: 6.45 MB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Template engine
Parse template using input data file (or options)
```
# Kamontat's Template parser
$ kc-tpr ...
Options:
-cwd string
base directory relative path resolve to (default "$PWD").
-template-path string
a require template path (either absolute or relative is accepted)
if directory is passed, parse all template on that folder and
assume output to be directory with same input name
without template extension.
-data-paths string
a data path (either yaml or json). You can pass more than 1 time.
-data string
a data string in format =. You can pass more than 1 time.
-output-path string
a optional output path (either absolute or relative is accepted).
if not provided, output to stdout.
-debug
enabled debug information.
```
## Development
```bash
go run github.com/kamontat/tmpl/cli
```
## asdf plugin
A easy way to install using asdf: https://github.com/kc-workspace/asdf-kc-tpr