Matthew Butterick

Results 190 comments of Matthew Butterick

I’m starting to think we’d be better off creating a separate hook within Pollen for this kind of thing, rather than shoehorning it into the current idea of templates. I...

For instance, one problem with muddling the two ideas: if `render-markup-or-markdown-source` is given a certain path as a template file, it won’t know whether it a) is meant to be...

Following on that idea, `renderer` could be used with `define-meta` as illustrated above (to set the renderer per-source). We could also make it a `setup` value with a default value...

OK, realization is dawning. I am apparently converging on the right spot 😉 I was asking how you wanted to invoke these renderers because if you want to possibly do...

I just pushed the simplest possible implementation of this: 1. establishes a setup value called `external-renderer`. 1. If this value is not `#false`, uses it in place of the usual...

For instance, here’s a toy `external-renderer` that ignores `doc` and `metas` and just writes out the three paths it receives as input: ``` #lang racket/base (module setup racket/base (provide external-renderer)...

> although it’s a bit suboptimal for Pollen to spend cycles hunting for a template.html.p (or whatever) that is not going to be used I’m persuaded by what you [said...

> because of the loading loop Hmm — maybe it will make more sense, ultimately, to make `external-renderer` a parameter rather than a `setup` value. Though that would probably mean...

The result is a little surprising, but it’s consistent with the [documented behavior](https://docs.racket-lang.org/pollen/Decode.html#%28def._%28%28lib._pollen%2Fdecode..rkt%29._decode-paragraphs%29%29). `"Food"` is adjacent to a `block-txexpr`, namely `ul`, so it gets a `p` tag. There are different...

For those of you who don’t know him, Jesse is an avid Racketeer: creator of the [Riposte language,](https://docs.racket-lang.org/riposte/) author of *[Server: Racket](https://serverracket.com/)* and *[Language-Oriented Programming with Racket: a Cultural Anthropology](https://serverracket.com/courses/lop-in-racket)*,...