aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorBenjamin Linskey2026-06-07 04:02:13 -0400
committerBenjamin Linskey2026-06-07 04:09:03 -0400
commit9e19dd2f89faf09d8b2fdc2926456d3de76738a2 (patch)
treeebf76191f6ebbd16171e50f5c5dc681efa4720fd
parent18ba901d929fc4496453d8ff8f1f652d156ef2b9 (diff)
downloadtpl-9e19dd2f89faf09d8b2fdc2926456d3de76738a2.tar.gz

Improve readme

-rw-r--r--README.md16
1 files changed, 8 insertions, 8 deletions
diff --git a/README.md b/README.md
index 3beb3ed..ce935c2 100644
--- a/README.md
+++ b/README.md
@@ -1,6 +1,7 @@
# template
-This is an extremely simple, general-purpose templating script written in awk.
+This is an extremely simple general-purpose templating tool written in standard
+AWK.
To get started, define a list of variables in a file:
@@ -87,9 +88,8 @@ expression metacharacters:
There is one exception to this rule: Variable values may reference variables
defined earlier in the file, in which case they must use the brace-delimited
variable format described above. Any other use of braces or any other
-prohibited character remains illegal when referencing a previously defined
-variable. The specified variable name must reference an actual variable
-previously defined in the file.
+prohibited character remains illegal. Variable names specified in the template
+variable format must reference actual variables previously defined in the file.
When a value references a previously defined variable, the most recent value of
that variable is used. If a variable name appears more than once, the previous
@@ -106,8 +106,8 @@ the value of `food` would be `apple`.
### Template File
-A template consists of arbitrary content containing zero or more template
-variables in the brace-delimited format described above. A variable may
-appear any number of times within a file or a line. A template variable that
-does not reference a valid variable defined in the variable file will be
+A template consists of arbitrary text containing zero or more template
+variables in the brace-delimited format described above. A variable may appear
+any number of times within a file or a line. A template variable that does not
+reference a valid variable defined in the variable file will be
ignored.