diff options
author | June McEnroe <june@causal.agency> | 2020-04-17 16:46:14 -0400 |
---|---|---|
committer | June McEnroe <june@causal.agency> | 2020-04-17 16:46:14 -0400 |
commit | 72b69f813efe5570d90b13507228704915542077 (patch) | |
tree | bff92e9caf4282dd922b86e8ee7342f62f853abe /archive.h | |
parent | Write attachment files (diff) | |
download | bubger-72b69f813efe5570d90b13507228704915542077.tar.gz bubger-72b69f813efe5570d90b13507228704915542077.zip |
Factor out templateBuffer
Diffstat (limited to '')
-rw-r--r-- | archive.h | 4 |
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); |