summaryrefslogtreecommitdiff
path: root/assets
diff options
context:
space:
mode:
authorPaul Buetow <paul@buetow.org>2026-07-04 22:14:16 +0300
committerPaul Buetow <paul@buetow.org>2026-07-04 22:14:16 +0300
commit2381c8712ebafa8060f0d2feacadd85bef280eb0 (patch)
tree5132d2b105de91299d052b6a0b69e9b8c9ec7a38 /assets
parentcb9a2b35216a1df783d9a8e9b901bcd32c958dbb (diff)
- Delete internal/file/content.go (duplicate implementation with different semantics).
- Refactor internal/file/file.go to use a File struct with options (WithContent, WithSource, WithMode, etc.). - Update Have signature to accept variadic options instead of (path, param). - Update tests to use new API. - Update TODO.md to remove resolved blocker and reflect remaining features.
Diffstat (limited to 'assets')
-rw-r--r--assets/testfiles/test.tmpl2
-rw-r--r--assets/testfiles/test.txt1
2 files changed, 3 insertions, 0 deletions
diff --git a/assets/testfiles/test.tmpl b/assets/testfiles/test.tmpl
new file mode 100644
index 0000000..073e946
--- /dev/null
+++ b/assets/testfiles/test.tmpl
@@ -0,0 +1,2 @@
+Hello, {{.Param}}!
+Welcome to {{.USER}}.
diff --git a/assets/testfiles/test.txt b/assets/testfiles/test.txt
new file mode 100644
index 0000000..88d12a3
--- /dev/null
+++ b/assets/testfiles/test.txt
@@ -0,0 +1 @@
+Simple source content.