Skip to content
simon-danielssonPublic

Latest commit

 

History

82 Commits

Folders and files

Repository files navigation

plint

Header-only C library for building basic static websites.

MIT License Last commit C

Info • Install • Usage
References • License


Info

Plint is (at its core) a wrapper around the Unix networking API; it's adequate for projects such as static websites with low traffic. For deployment, just slap an nginx reverse proxy on top of it.

Features

  • HTML template engine
  • Serving of static files
  • Easy-to-understand error messages
  • Bulk asset routing

Planned features

  • POST request handling
  • Customizable 404 page (fallback route)

Requirements

  • C99 or newer
  • Unix OS

Install

Simply clone or copy-paste plint.h into your codebase and include it like so:

#define PLINT_IMPLEMENTATION
#include "plint.h"

Usage

See USAGE.md for an in-depth walkthrough of Plint.
See /examples to view practical examples of typical usage.

My own website is an example of Plint being used in the real world.


References


License

This project is licensed under the MIT License.