Search

4 Static Website Generators for C++

Order of which I believe has more resources.


4 Static Website Generators for C++

Creating static websites is one of the most modern technologies for both documentation purposes such as creating a blog, website or even a portal. I particularly use Jekyll which is made with Ruby on Rails, but some people asked me if there are options made with C++ , so I decided to create this mini list for today’s cpp::daily.

So let’s look at 4 options in the order I believe to be the most complete. If you want to know about web framework made with C++ I suggest you to watch this video.

Nift

Nift

Nift or nsm, short for nifty site manager, is a cross-platform git and LaTeX-like site manager written in C++ . You can create any website you like (static and not static/dynamic) using Nift, although you need some kind of web server, like Apache, NGINX, etc. to host non-static/dynamic websites, while static websites can be easily hosted on platforms like BitBucket, GitHub, GitLab and Netlify.


sudo_site

sudo_site

sudo_site is the simplest and lightest static site generator out there, with no dependencies and with all the libraries already provided with the repository, you don’t need to install any other dependencies.

With approximately 120 lines of code, it becomes the smallest static website generator capable of generating multiple pages and blogs.

The repository also has a GitHub actions configuration file with the help of which you can automate the build process in github itself. He can upload to any repository he likes, just add a PERSONAL ACCESS TOKEN to the secrets with the repo checkbox checked when creating the TOKEN.

Documentation is in progress, although you don’t need to because it’s so simple. After cloning or downloading the repository, just run

g++ -o sudo_site sudo_site.cpp -lstdc++fs && ./sudo_site


BlogC++

BlogC++

BlogC++ is yet another static blog generator, written in C++17.

Use the libraries:

  • cxxopts
  • inja
  • json
  • TinyXML2
  • ConfigParser
  • dukglue with duktape
  • icu
  • libcurl if compiled with the option: WITH_OEMBED

The goal is to provide a decent feature set without requiring a lot of configuration.


Bake

Bake

Bake is a tool to generate blogs as if you were using make. Create a template, bakefile and your markdown posts and you’re ready to go!


cpp cppdaily


Share



Comments