aboutsummaryrefslogtreecommitdiff
path: root/include/template.h
diff options
context:
space:
mode:
Diffstat (limited to 'include/template.h')
-rw-r--r--include/template.h8
1 files changed, 8 insertions, 0 deletions
diff --git a/include/template.h b/include/template.h
index 24ca98f..b12208f 100644
--- a/include/template.h
+++ b/include/template.h
@@ -35,4 +35,12 @@ char *tpl_getval(char *key);
*/
char *tpl_render(char *str);
+/**
+ * Write tpl_render() output to a file
+ * @param str the text to render
+ * @param filename the output file name
+ * @return 0 on success, <0 on error
+ */
+int tpl_render_to_file(char *str, const char *filename);
+
#endif //OMC_TEMPLATE_H