# Template Engine A shell script template engine for generating scripts that render HTML markup, or anything really. ## Examples ```html $ #!/bin/sh $ title='My Restaurant Randomizer';
From the following restaurants:
The fates have decided that you shall eat at: <$% shuf -n 1 restaurants.txt %>
``` The above template will generate the following shell script: ```bash #!/bin/sh title='My Restaurant Randomizer'; printf '%s\n' ''; printf '%s\n' ''; printf '%s\n' ' '; printf '%s' 'From the following restaurants:
'; printf '%s\n' ''; printf '%s\n' ' The fates have decided that you shall eat at:'; printf '%s' ' '; printf '%s' "$(shuf -n 1 restaurants.txt)" | jq -Rrj @html; printf '%s\n' ''; printf '%s\n' '
'; printf '%s\n' ' '; printf '%s\n' ''; ``` Which when executed might produce the following HTML: ```htmlFrom the following restaurants:
The fates have decided that you shall eat at: Luigi's
``` ## License [MIT](https://choosealicense.com/licenses/mit/)