If digram-row‘s items will always be single, you can also make digram-row
responsible for wrapping , which seems cleaner IMO.
(define (digram-row . elements)
(case (current-poly-target)
[(txt) elements]
[else (txexpr 'ol empty (map (lambda (e) (txexpr 'li empty (list
e))) elements))]))
> On Feb 25, 2019, at 3:43 PM, Brendan Stromberger
> wrote:
>
> I've got a simple Pollen question for anyone that is familiar.
>
> ◊; digram-row would map to an , and digram-row-item to an ,
>
> (define (digram . elements)
> (case (current-poly-target)
> [(txt) elements]
> [else
I've got a simple Pollen question for anyone that is familiar. I'm just
getting started trying to build a book. I've posted a gist with the
particulars, explaining my question and showing the code.
https://gist.github.com/bstro/a7ab051c6aa76087f94effb6f38e02e9
Thanks!
--
You received this