about summary refs log tree commit diff stats
path: root/tet
diff options
context:
space:
mode:
authorCase Duckworth2024-01-25 23:04:02 -0600
committerCase Duckworth2024-01-25 23:04:02 -0600
commitd17a818581cf73ec2801bfd8d80a2e6e95c3b412 (patch)
tree3f94fbf5e20b7b38adaf9e1aaffc4344ee136c2e /tet
parentUpdate to use prefix characters (diff)
downloadet-main.tar.gz
et-main.zip
Add templating capability main
Diffstat (limited to 'tet')
-rwxr-xr-xtet9
1 files changed, 9 insertions, 0 deletions
diff --git a/tet b/tet new file mode 100755 index 0000000..c97d677 --- /dev/null +++ b/tet
@@ -0,0 +1,9 @@
1#!/bin/sh
2
3__template__="$1"; shift
4et="$(which et||echo ./et)"
5
6"$et" "$@" | sed '$d'
7echo 'shexpand<<%'
8cat "$__template__"
9echo %