You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: docu/README.tpl.md
+13-4Lines changed: 13 additions & 4 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -73,23 +73,32 @@ These files will be inlined as described in the template. The generated comment
73
73
To update the hostsfile the system will use at `/etc/hosts`, run this:
74
74
75
75
```shell
76
-
{{ regexReplaceAll "^#\\s*|\\s*#$"(include "docu/hosts.gen"| match "sudo io")"" }}
76
+
{{ regexpReplaceLiteral "(^\\s*#\\s*)|(\\s*#\\s*$)"""(include "docu/hosts.gen"| match "sudo io") }}
77
77
```
78
78
79
79
Other content around the `range` operation is left untouched, but can still only be edited in `/etc/hosts.gen` otherwise it would be overwritten.
80
80
81
81
82
82
## Template Functions
83
83
84
-
* all functions defined in [Masterminds/**sprig**](http://masterminds.github.io/sprig/)
85
-
* all functions defined in [jojomi/**tplfuncs**](https://github.com/jojomi/tplfuncs) (the `exec*` variants are only avaiable when `--allow-exec` is given when calling `io` due to security implications)
84
+
All functions defined in [jojomi/**tplfuncs**](https://github.com/jojomi/tplfuncs) (the `exec*` variants are only avaiable when `--allow-exec` is given when calling `io` due to security implications)
86
85
87
86
A quick introduction to Golang Templates can be found at [Hugo](https://gohugo.io/templates/introduction).
0 commit comments