Matthew Butterick

Results 190 comments of Matthew Butterick

I just pushed an update to the underlying `txexpr` library that should fix your case: ```racket #lang pollen/mode racket (require pollen/tag pollen/template/html rackunit) (define html-comment '(@ "")) (define root (default-tag-function...

See also https://github.com/applied-science/talks/tree/master/mxnet (example of using Pollen to orchestrate reveal.js)

Though you can only have one pair of curly braces in each expression, you can nest subexpressions (each with their own curly braces) as deep as you want, e.g. —...

``` #lang pollen Decide for yourself whether this is easy: ◊(require racket/file) ◊(file->string "your_file.xyz") ```

> As far as I can tell, there's no way to attach metadata to page nodes Why not [`define-meta`](https://docs.racket-lang.org/pollen/Core.html#%28form._%28%28lib._pollen%2Fcore..rkt%29._define-meta%29%29)? > The second question is about rendering the forward / backward...

> The second one (forward and back links) I'm still stumped on. This is covered in [the second tutorial](https://docs.racket-lang.org/pollen/second-tutorial.html) in the Pollen docs.

I have the same reservations about templates. But I’ve never had a better idea. The problem is that a template is not, by nature, a self-contained source file. It’s a...

Pollen templates can refer to any identifiers that are in the lexical scope of the underlying Pollen source. So `doc` and `metas`, but also everything exported by the associated `pollen.rkt`....

> prefer this to remain a separate package Yes, though — 1. I’m open to improving the public interface of Pollen itself so you can extend it with `beeswax` (you...

You can inspect any environment variable from within a tag function using `getenv` (that’s a Racket thing, not a Pollen thing)