pollen.rkt
#lang racket
(require pollen/decode pollen pollen/unstable/pygments)
(provide highlight root)
(define (root . elements)
(decode
`(root (body ,@elements))
#:txexpr-elements-proc decode-paragraphs))
file.html.pm
#lang pollen
◊highlight['python]{
def preprocess(g):
clock
I just solved the issue. In my template.html I replaced
◊(map ->html (select-from-doc 'body here))
with
◊(map ->html (select-from-doc 'body here))
And the problem is solved. Not sure if there is a better way.
--
You received this message because you are
> On Mar 11, 2019, at 2:48 AM, Evžen Wybitul wrote:
>
> The `decode-pagaraphs` incorrectly wraps blocks of code in tags into
> paragraphs. I'm using pygments, so within the the code is split into
> various s, which I think is causing the problem. Simply seting
> as block-tag didn't fix
I would like to set a project like https://beautifulracket.com/ is there a
tutorial oon how to set this up? Is this running ion heruko? Amazon? What
do I need in the background?
Thank you for pointing me in the right direction. Great website by the way.
I have some questions about interactivity. I
The `decode-pagaraphs` incorrectly wraps blocks of code in tags into
paragraphs. I'm using pygments, so within the the code is split into
various s, which I think is causing the problem. Simply seting
as block-tag didn't fix this. Is there any other way? Thanks.
--
You received this