Simplest Template Engine Ever (Written in BASH)
Installing:
bpkg install vicentebolea/bash-templater
Using it:
templater vars < file.template
You have this file.template:
# My template
## Author
- @NAME@ <@EMAIL@>And this rules file:
NAME=LEOPOLDO WINSTON
EMAIL=leothewinston\@leoserver.comYou execute this command:
templater rules < file.templateYou get this:
# My template
## Author
- LEOPOLDO WINSTON <[email protected]>Escape the @ character like \@ in the rules file.
Use the fantastic BASH package manager BPKG and just:
bpkg install vicentebolea/bash-templater
- Vicente Adolfo Bolea Sanchez [email protected]