strbuf_t * lwan_tpl_apply(lwan_tpl_t *tpl, char *(*var_get)(const char *name, void *data), void *var_get_data) { strbuf_t *buf = strbuf_new_with_size(tpl->minimum_size); lwan_tpl_apply_until(tpl->chunks, buf, var_get, var_get_data, until_end, NULL); return buf; }
ALWAYS_INLINE strbuf_t * strbuf_new(void) { return strbuf_new_with_size(DEFAULT_BUF_SIZE); }