Soupault 4.9.0 release
Estimated reading time: less than a minute.
Date:
Soupault 4.9.0 is available for download from my own server and from GitHub releases. It is a small release that includes Lua plugin API for cryprographic hash functions (MD5, SHA-1, SHA-256/512, and BLAKE2), a couple of function aliases, and a new hook that runs before any pages are processed.
New features and improvements
-
New
startup
hook that runs before soupault processes any pages and can modify theglobal_data
variable.
New plugin API functions
New Digest
module offers functions for calculating cryptographic hash sums of strings. All those functions return hex digests.
-
Digest.md5(str)
-
Digest.sha1(str)
-
Digest.sha256(str)
-
Digest.sha512(str)
-
Digest.blake2s(str)
-
Digest.blake2b(str)
Other new functions:
-
Sys.basename_url(str)
andSys.dirname_url(str)
— aliases forSys.basename_unix
andSys.dirname_unix
, respectively.