Let URL-RULE use SURFLET-SXML->LOW-LEVEL-SXML instead of writing own string list
This commit is contained in:
parent
39066ac109
commit
dcce51cc3f
|
@ -1,11 +1,11 @@
|
||||||
(define url-rule
|
(define url-rule
|
||||||
(cons 'url
|
(cons 'url
|
||||||
(lambda (tag uri . maybe-text)
|
(lambda (tag uri . maybe-text)
|
||||||
(list "<a href=\"" uri "\">"
|
(surflet-sxml->low-level-sxml
|
||||||
(if (null? maybe-text)
|
`(a (@ (href ,uri))
|
||||||
|
,(if (null? maybe-text)
|
||||||
uri
|
uri
|
||||||
maybe-text)
|
maybe-text))))))
|
||||||
"</a>"))))
|
|
||||||
|
|
||||||
(define plain-html-rule
|
(define plain-html-rule
|
||||||
`(plain-html
|
`(plain-html
|
||||||
|
|
Loading…
Reference in New Issue