-
Notifications
You must be signed in to change notification settings - Fork 10
chl_import
it4e edited this page Oct 4, 2016
·
3 revisions
<chl/chl.h>
chl_import, CHL import
void chl_import(char * path);
The chl_import function is used to fetch the contens of a view file [path].
- path: the path to the view file
No return value.
main.c
#include <chl/chl.h>
#include <stdio.h>
int main() {
chl_set_default_headers();
chl_print_headers();
// Import view file
chl_import("index.vw");
}
index.vw (view file)
....
<body>
Hello world!
</body>
....
Output: .... <body> Hello world! </body> ....