Skip to content

📁📁📁Simplest Ever Template Engine (15 lines of BASH)

License

Notifications You must be signed in to change notification settings

5H3LL3H5/bash-templater

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

BASH TEMPLATER Build Status

Simplest Template Engine Ever (Written in BASH)

TL;DR

Installing:

 bpkg install vicentebolea/bash-templater

Using it:

templater vars < file.template

USE ME

You have this file.template:

# My template
## Author
 - @NAME@ <@EMAIL@>

And this rules file:

NAME=LEOPOLDO WINSTON
EMAIL=leothewinston\@leoserver.com

You execute this command:

templater rules < file.template

You get this:

# My template
## Author
 - LEOPOLDO WINSTON <[email protected]>

The only rule

Escape the @ character like \@ in the rules file.

INSTALL ME

Use the fantastic BASH package manager BPKG and just:

bpkg install vicentebolea/bash-templater

AUTHORS

THANKS TO

About

📁📁📁Simplest Ever Template Engine (15 lines of BASH)

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages

  • Shell 100.0%