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