Bogdanp / koyo

A web development toolkit for Racket.
https://koyoweb.org
136 stars 12 forks source link

`haml` cannot use unquote-splicing at the root level #48

Closed otherjoel closed 2 years ago

otherjoel commented 2 years ago

Given (define items (haml (:li "a") (:li "b"))), either of the below result in an error:

(haml ,@items)
(haml (:li "First") ,@items)
../../../Library/Racket/snapshot/pkgs/koyo-lib/koyo/haml.rkt:193:28: 
unquote-splicing: invalid context within quasiquote in: (unquote-splicing items)
Bogdanp commented 2 years ago

Thanks for the report! This should now be fixed.

otherjoel commented 2 years ago

Thanks!