| Did you know ... | Search Documentation: |
| Packs (add-ons) for SWI-Prolog |
| Title: | Dynamic Prolog blog engine with Markdown parser and RSS |
|---|---|
| Rating: | Not rated. Create the first rating! |
| Latest version: | 1.0.3 |
| SHA1 sum: | 22f5e65220b1b397fff4eb344dfec621e37a4a73 |
| Author: | Zhongying Qiao https://blauanarchy.org/ |
| Maintainer: | Zhongying Qiao https://github.com/cryptoque |
| Packager: | Zhongying Qiao https://github.com/cryptoque |
| Home page: | https://github.com/SymbolicGarden/plog |
| Download URL: | https://github.com/SymbolicGarden/plog.git |
No reviews. Create the first review!.
| Version | SHA1 | #Downloads | URL |
|---|---|---|---|
| 1.0.3 | 22f5e65220b1b397fff4eb344dfec621e37a4a73 | 2 | https://github.com/SymbolicGarden/plog.git |
| 1.0.2 | 9882d70142676baa03c72787b71d96ff251adb08 | 2 | https://github.com/SymbolicGarden/plog.git |
| 3f766eb836678fcc9402672bf15aff6a2113f864 | 1 | https://github.com/SymbolicGarden/plog.git | |
| 1.0.1 | 1e25f68459e6a5b80025a5365555086bf0924baa | 3 | https://github.com/SymbolicGarden/plog.git |
| 1.0.0 | bfa8925e2d2eb670e32b67daac28b4f044479ab1 | 5 | https://github.com/SymbolicGarden/plog.git |
 
What does a blog engine look like if you write it in logic?
Yes, you can write a web server with Prolog. Plog is a blog engine written in pure Prolog that dynamically reads Markdown files, parses them at request time, and serves clean HTML using a minimal prolog HTTP server.
No frameworks. No dependencies. No JavaScript. Just Prolog.
To add a new blog entry, simply write it in markdown and add it as prolog file to the contents folder. The prolog engine will dynamically parse the markdown into html recursively for display.
Check the site live: https://blauanarchy.org
http/html_writeswipl pack install plog
my_prolog_config.pl, or modify my_prolog_config.pl from the installed location:
:- module(my_plog_config, []).
:- multifile plog:site_title/1, plog:site_link/1, plog:site_description/1.
plog:site_title('BlauAnarchy\'s Blogs'). % Change this with your own blog title
plog:site_link('https://blauanarchy.org'). % Change this with your own blog link
plog:site_description('A Blog site on Symbolic Coherence, written in pure prolog.'). % Change this with your own blog description
contents and put your blogs files e.g. my_first_blog.pl inside. Checkout contents folder for examples. The blog files should be written in markdown and look like this:
content("Put your markdown contents here").
images and drop the files there.[my_prolog_config]. use_module(library(plog)). server(Port).
http://localhost:Port
That is the entire authoring model.
This project intentionally avoids complexity. No abstractions unless justified. Everything is visible and understandable at a glance.
Built by Zhongying Qiao.
If you find this project interesting, you’re welcome to star the repository or reuse it as a base for your own Prolog systems.
Apache License 2.0 Copyright © Zhongying Qiao 2025
Pack contains 18 files holding a total of 852K bytes.