about summary refs log tree commit diff
path: root/archive.h
diff options
context:
space:
mode:
authorJune McEnroe <june@causal.agency>2020-04-17 16:46:14 -0400
committerJune McEnroe <june@causal.agency>2020-04-17 16:46:14 -0400
commit72b69f813efe5570d90b13507228704915542077 (patch)
treebff92e9caf4282dd922b86e8ee7342f62f853abe /archive.h
parentWrite attachment files (diff)
downloadbubger-72b69f813efe5570d90b13507228704915542077.tar.gz
bubger-72b69f813efe5570d90b13507228704915542077.zip
Factor out templateBuffer
Diffstat (limited to 'archive.h')
-rw-r--r--archive.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/archive.h b/archive.h
index 06fd435..b1cb3dc 100644
--- a/archive.h
+++ b/archive.h
@@ -150,6 +150,10 @@ int templateRender(
 	FILE *file, const char *template,
 	const struct Variable vars[], EscapeFn *escape
 );
+char *templateBuffer(
+	char *buf, size_t cap, const char *template,
+	const struct Variable vars[], EscapeFn *escape
+);
 char *templateURL(const char *template, const struct Variable vars[]);
 
 char *decodeHeader(const char *header);