|(require beeswax)||package: beeswax|
Beeswax is a simple templating language. A Beeswax template wraps its contents in a function that can be imported by other modules and applied to data to get a rendered document. Having a #lang for your templates has a few small benefits: it lights up all the little conveniences of your IDE, if you use one (DrRacket, racket-mode, etc.); it’s a little easier to reason about and reuse in other contexts; and it can make renders faster (because the template can be compiled).
Beeswax was designed to be easy to use within Pollen projects, but can be of use in other Racket projects as well.
Warning: Beeswax isn’t done yet, and will probably change. I will announce any breaking changes in the Announcements section of the project’s discussion forum.
Installation: To install Beeswax from the command line:
> raco pkg install beeswax
Or using DrRacket: click the File menu → Install Package ….