Can I insert an SSI directive via scribble?

20 views
Skip to first unread message

Kathi Fisler

unread,
Jul 10, 2018, 9:31:58 AM7/10/18
to Racket Users
I am using scribble to generate html, and need the generated html to include an SSI directive.

Can I do this through scribble?  I tried working with sxml->element, but don't see how to generate comment tags from sxml.

thanks,
Kathi

Ben Greenman

unread,
Jul 10, 2018, 11:04:45 AM7/10/18
to Kathi Fisler, Racket Users
I used this function to put comments in `scribble/html` files, maybe
it'll work for you?

@(define (comment . content)
@literal[@list[" <!-- " content " --> "]])


Source:
https://github.com/nuprl/website/blob/master/templates.rkt#L24

Kathi Fisler

unread,
Jul 10, 2018, 9:57:31 PM7/10/18
to benjamin...@gmail.com, racket...@googlegroups.com
I hadn't know about literal -- thanks!  I'm making headway now.

Kathi
Reply all
Reply to author
Forward
0 new messages