diff options
Diffstat (limited to 'src/j2.h')
-rw-r--r-- | src/j2.h | 29 |
1 files changed, 29 insertions, 0 deletions
diff --git a/src/j2.h b/src/j2.h new file mode 100644 index 0000000..3e958d3 --- /dev/null +++ b/src/j2.h @@ -0,0 +1,29 @@ +/** + * This CGI program renders the oper.io blog + * Copyright (C) 2019 Aaron Ball <nullspoon@oper.io> + * + * This program is free software: you can redistribute it and/or modify + * it under the terms of the GNU General Public License as published by + * the Free Software Foundation, either version 3 of the License, or + * (at your option) any later version. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + * + * You should have received a copy of the GNU General Public License + * along with this program. If not, see <http://www.gnu.org/licenses/>. + */ +#include <stdio.h> +#include <stdlib.h> +#include <string.h> + +int j2_readvar(FILE*, char*); + + +/** + * Reads a jinja file and cats the output, interpolating variables, values from + * matching environment variables. + */ +int j2_cat(char*); |