‘Iacta alea est’
This post has very little to do with form formation but arises from my observations about HTML generation in form libraries yesterday as well as earlier reflections.
Some libraries have an ad-hoc implementation of an HTML library included within them. This is not really a surprise given the tight pairing of a form’s representation with its HTML. It is a problem that needs to be solved one way or the other.
In some ways my experiments that led to something very like Hypertext were me working backwards to this state of affairs in Ruby. Although there is no explicit AST, we can define markup with Ruby methods, making the inclusion of particular logic, the setting of attributes or even the interpolation of variables something possible in the language proper.
So it seems inevitable that trying to write a form library would ultimately lead to an HTML library to support it. I must have subconsciously cottoned onto this given I started with the HTML library.
—Thursday 3rd June 2021.