Kento Okura has been blowing my mind with the latest work on Forester 6.0, generously funded by Tarides and the OCaml Software Foundation. The main goal of Forester 6.0 was to provide built-in HTML renderer, in light of the removal of XSLT support from major browsers.
The default mode of use for publishing forests will henceforth be via HTML; no separate “theme” is required, as all the resources needed will be bundled into the Forester binary. This puts an end to the frustrating upgrade process, where you have to update your “theme” submodule when upgrading Forester. Most future users of Forester will not ever need to use a submodule unless they wish to make use of the legacy XML renderer:
Moving to HTML has made a number of really exciting things possible, and I can’t wait for people to try them out. The most important one is the live preview server, which is automatically fired up by the language server. In Forester 5.0, you run serve the output/ directory manually and, when you edit a tree, you must then wait several seconds for your entire forest to rebuild, and then you refresh your web browser. In Forester 6.0, localhost:8080 is bound as soon as you open an editor configured to use our language server, and then the preview updates live as you type; only the tree you are viewing is re-rendered.
Unlike the static HTML output that you will upload to your web host, the preview server is using HTMX. Currently this is not particularly visible from a user’s point of view, but we hope that the use of HTMX will enable us to add useful features for editing forests locally; for example, I could imagine that a future version of Forester would allow editing the forest in-place without a separate text editor; full text search is another feature this could enable. It is not intended that user should actually try and serve their forests to the World Wide Web using the dynamic preview server, but in the future we might support a dynamic production mode for users who are willing to forgo the ease and simplicity of static output in return for additional dynamic features. The static output mode remains the central priority, however, for Forester deployments in perpetuity.
I cannot even begin to express what a big improvement these updates are to my workflow, and I hope it will be helpful to you as well. There are still some rough edges that we are polishing, and documentation needs to be written, but I am hoping for a public release by the end of the month.