Make this a macro

This commit is contained in:
Jakub 2026-07-12 12:38:00 +08:00
parent 147b56f051
commit 3b0e3f7f25

View file

@ -1,10 +1,10 @@
(define (mithril:init) (define-macro (mithril:init)
"(mithril:init) "(mithril:init)
Loads Mithril into the document head and sets the Loads Mithril into the document head and sets the
pragma->sxml function." pragma->sxml function."
(get-resource "https://cdnjs.cloudflare.com/ajax/libs/mithril/2.2.2/mithril.min.js") `(begin (get-resource "https://cdnjs.cloudflare.com/ajax/libs/mithril/2.2.2/mithril.min.js")
(pragma->sxml m)) (pragma->sxml m)))
(define-macro (mithril:comp view . args) (define-macro (mithril:comp view . args)
"(mithril:comp view . args) "(mithril:comp view . args)