https://github.com/eigilhs/c-natra
A Sinatra-style microframework for C.
https://github.com/eigilhs/c-natra
c dont-use-this-no-really libevent web-framework
Last synced: 10 months ago
JSON representation
A Sinatra-style microframework for C.
- Host: GitHub
- URL: https://github.com/eigilhs/c-natra
- Owner: eigilhs
- License: bsd-2-clause
- Created: 2017-02-03T15:42:03.000Z (almost 9 years ago)
- Default Branch: master
- Last Pushed: 2017-08-20T16:06:45.000Z (over 8 years ago)
- Last Synced: 2025-03-15T07:38:45.238Z (10 months ago)
- Topics: c, dont-use-this-no-really, libevent, web-framework
- Language: C
- Homepage:
- Size: 15.6 KB
- Stars: 4
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# C-natra
A Sinatra-style microframework for C. Very inspired by
[Bogart](https://github.com/tyler/Bogart), but probably even more
unsuitable for serious use (or any use at all).
```c
#include
get("/") {
html("
Hello, World!
");
return HTTP_OK;
}
serve(8000)
```
More examples [here](examples/example.c).
Depends on [libevent](https://github.com/libevent/libevent) 2.x.