Make this a macro
This commit is contained in:
parent
147b56f051
commit
3b0e3f7f25
1 changed files with 3 additions and 3 deletions
|
|
@ -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)
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue