Skip to content

Latest commit

 

History

History
20 lines (14 loc) · 397 Bytes

README.md

File metadata and controls

20 lines (14 loc) · 397 Bytes

C-natra

A Sinatra-style microframework for C. Very inspired by Bogart, but probably even more unsuitable for serious use (or any use at all).

#include <c-natra.h>

get("/") {
	html("<h1>Hello, World!</h1>");
	return HTTP_OK;
}

serve(8000)

More examples here.

Depends on libevent 2.x.