Add js func.
This commit is contained in:
@@ -7,7 +7,7 @@
|
|||||||
sxml->html
|
sxml->html
|
||||||
|
|
||||||
; helper functions
|
; helper functions
|
||||||
markdown-file->sxml link link-list css
|
markdown-file->sxml link link-list css js
|
||||||
|
|
||||||
; core functions
|
; core functions
|
||||||
add-page! delete-page! add-css! delete-css!
|
add-page! delete-page! add-css! delete-css!
|
||||||
@@ -63,6 +63,9 @@
|
|||||||
(define (css path)
|
(define (css path)
|
||||||
`(link (@ (rel "stylesheet") (href ,(++ (link-root) path)))))
|
`(link (@ (rel "stylesheet") (href ,(++ (link-root) path)))))
|
||||||
|
|
||||||
|
(define (js path)
|
||||||
|
`(script (@ (type "text/javascript") (src ,(++ (link-root) path)))))
|
||||||
|
|
||||||
(define (add-page! path body)
|
(define (add-page! path body)
|
||||||
(hash-table-set! *pages* path body))
|
(hash-table-set! *pages* path body))
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user