diff options
| author | Benjamin Linskey | 2026-06-07 01:52:24 -0400 |
|---|---|---|
| committer | Benjamin Linskey | 2026-06-07 02:04:42 -0400 |
| commit | 41925025c47abb9b9d0538c4789975bf7c283ca4 (patch) | |
| tree | e604ff7727342694ee00b8cfd785e824bc9ae41a | |
| parent | 1f47e0501d53883097718c569023461b0931c15a (diff) | |
| download | tpl-41925025c47abb9b9d0538c4789975bf7c283ca4.tar.gz | |
Make spaces in template vars optional
Template variables can now have zero or more whitespace characters between the braces and the variable name.
| -rwxr-xr-x | template | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -8,7 +8,7 @@ FILENAME == ARGV[1] { next } /\{\{.+\}\}/ { for (key in vals) { - gsub("\{\{ " key " \}\}"/, vals[key]) + gsub("\{\{[[:space:]]*" key "[[:space:]]*\}\}", vals[key]) } } |