Skip to content

Commit cd07aac

Browse files
committed
render docs
1 parent 5312f22 commit cd07aac

File tree

1 file changed

+11
-1
lines changed

1 file changed

+11
-1
lines changed

README.md

Lines changed: 11 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -104,7 +104,7 @@ alternate form using matching
104104

105105
For some reason you want to list the files in a directory and embed them in a file in a custom format:
106106

107-
```gotemplate
107+
```template
108108
{{- $files := fileGlob "./*/*" -}}
109109
{{- range $path := $files }}
110110
{{- $stat := fileStat $path }}
@@ -113,6 +113,16 @@ For some reason you want to list the files in a directory and embed them in a fi
113113
{{ printf "%-12s" $stat.Mode }}{{ printf $usernameFString $username }}{{ pathAbsolute $path}}
114114
{{- end }}
115115
```
116+
```
117+
-rw-rw-rw- adam C:\Users\adam\code\yet-unnamed-template-cli\.git\COMMIT_EDITMSG
118+
-rw-rw-rw- adam C:\Users\adam\code\yet-unnamed-template-cli\.git\FETCH_HEAD
119+
-rw-rw-rw- adam C:\Users\adam\code\yet-unnamed-template-cli\.git\HEAD
120+
-rw-rw-rw- adam C:\Users\adam\code\yet-unnamed-template-cli\.git\ORIG_HEAD
121+
-rw-rw-rw- adam C:\Users\adam\code\yet-unnamed-template-cli\.git\config
122+
-rw-rw-rw- adam C:\Users\adam\code\yet-unnamed-template-cli\.git\description
123+
drwxrwxrwx adam C:\Users\adam\code\yet-unnamed-template-cli\.git\hooks
124+
........
125+
```
116126
### Merging 2 data files and applying them to a template
117127

118128
```pwsh

0 commit comments

Comments
 (0)