soupault 1.8.0 is released along with Lua-ML 0.9.1.
Lua-ML now raises Failure
when Lua code execution fails. There’s much room for improvement in that area, for now I’ve just done something that is better than just displaying errors on stderr but otherwise allowing syntax and runtime errors pass silently.
If you have any ideas how perfect interpreter error reporting should work, please share!
As of improvements in soupault itself, there’s now:
- A way for plugins to specify their minimum supported soupault version like
Plugin.require_version("1.8.0")
-
TARGET_DIR
environment variable andtarget_dir
Lua global that contains the directory where the rendered page will be written, to make it easier for plugins/scripts to place processed assets together with pages. - “Build profiles”: if you add
profile = "production"
or similar to widget config, that widget will be ignored unless you runsoupault --profile production
. - A bunch of new utility functions for plugins.