If you want to reset xexprs for a potentially more convenient tool, then there is a new language that is used to create Racket web pages. It is not yet documented (therefore it is still new and not publicly available), but you can see how it is used in these sources . As a quick example demonstrating this, run this:
Another example uses it as a library:
at-exp
not required, it just makes it easy to write a lot of text to code. (And that would also be useful with xexprs too.)
The main difference is that in this language HTML tags are actually bindings, which makes it convenient to maintain code. It is also very flexible in that it can be interpreted as text - for example, there is no need to store it in a strict list of lines and subtag, so you never come across issues such as where to use the append-map
, etc.
source share