2.1 Generating HTML Strings
(require scribble/html/html) | package: scribble-html-lib |
函数
(doctype s) → procedure?
s : (or/c string 'html 'xhtml)
> (output-xml (doctype "?")) <!DOCTYPE ?>
> (output-xml (doctype 'html)) <!DOCTYPE html>
> (regexp-split #rx"\n|((?<=\") (?=\"))" (xml->string (doctype 'xhtml)))
'("<?xml version=\"1.0\" encoding=\"utf-8\"?>"
"<!DOCTYPE html PUBLIC \"-//W3C//DTD XHTML 1.0 Strict//EN\""
"\"http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd\">"
"")
函数
(xhtml content ...) → procedure?
content : outputable/c
> (regexp-split #rx"\n|((?<=\") (?=\"))" (xml->string (xhtml "Hello")))
'("<?xml version=\"1.0\" encoding=\"utf-8\"?>"
"<!DOCTYPE html PUBLIC \"-//W3C//DTD XHTML 1.0 Strict//EN\""
"\"http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd\">"
"<html xmlns=\"http://www.w3.org/1999/xhtml\">Hello</html>"
"")
> (output-xml (title "The Book")) <title>The Book</title>
函数
(base v ...) → procedure?
v : outputable/c
函数
(meta v ...) → procedure?
v : outputable/c
函数
(link v ...) → procedure?
v : outputable/c
函数
(hr v ...) → procedure?
v : outputable/c
函数
(br v ...) → procedure?
v : outputable/c
函数
(basefont v ...) → procedure?
v : outputable/c
函数
(param v ...) → procedure?
v : outputable/c
函数
(img v ...) → procedure?
v : outputable/c
函数
(area v ...) → procedure?
v : outputable/c
函数
(input v ...) → procedure?
v : outputable/c
函数
(isindex v ...) → procedure?
v : outputable/c
函数
(col v ...) → procedure?
v : outputable/c
函数
(embed v ...) → procedure?
v : outputable/c
函数
(keygen v ...) → procedure?
v : outputable/c
函数
(wbr v ...) → procedure?
v : outputable/c
> (output-xml (hr)) <hr />
值
值
值
值
值
值
值
值
值
值
值
值
值
值
值
值
值
值
> (output-xml nbsp)
函数
(script/inline v ...) → procedure?
v : outputable/c
> (output-xml (script/inline type: "text/javascript" "var x = 5;"))
<script type="text/javascript">
//<![CDATA[
var x = 5;
//]]>
</script>
函数
(style/inline v ...) → procedure?
v : outputable/c
> (output-xml (style/inline type: "text/css" ".racket { font-size: xx-large; }"))
<style type="text/css">
.racket { font-size: xx-large; }
</style>
2.1.1 Other HTML elements
(require scribble/html/extra) | |
package: scribble-html-lib |
Provides renderers for HTML elements that are not provided by scribble/html/html.
函数
(article v ...) → procedure?
v : outputable/c
函数
(aside v ...) → procedure?
v : outputable/c
函数
(audio v ...) → procedure?
v : outputable/c
函数
(bdi v ...) → procedure?
v : outputable/c
函数
(canvas v ...) → procedure?
v : outputable/c
函数
(data v ...) → procedure?
v : outputable/c
函数
(datalist v ...) → procedure?
v : outputable/c
函数
(figcaption v ...) → procedure?
v : outputable/c
函数
(figure v ...) → procedure?
v : outputable/c
函数
(footer v ...) → procedure?
v : outputable/c
函数
(header v ...) → procedure?
v : outputable/c
函数
(main v ...) → procedure?
v : outputable/c
函数
(map v ...) → procedure?
v : outputable/c
函数
(mark v ...) → procedure?
v : outputable/c
函数
(math v ...) → procedure?
v : outputable/c
函数
(meter v ...) → procedure?
v : outputable/c
函数
(nav v ...) → procedure?
v : outputable/c
函数
(output v ...) → procedure?
v : outputable/c
函数
(picture v ...) → procedure?
v : outputable/c
函数
(progress v ...) → procedure?
v : outputable/c
函数
(rb v ...) → procedure?
v : outputable/c
函数
(rp v ...) → procedure?
v : outputable/c
函数
(rt v ...) → procedure?
v : outputable/c
函数
(rtc v ...) → procedure?
v : outputable/c
函数
(ruby v ...) → procedure?
v : outputable/c
函数
(section v ...) → procedure?
v : outputable/c
函数
(summary v ...) → procedure?
v : outputable/c
函数
(svg v ...) → procedure?
v : outputable/c
函数
(template v ...) → procedure?
v : outputable/c
函数
(time v ...) → procedure?
v : outputable/c
函数
(video v ...) → procedure?
v : outputable/c
> (output-xml (title "The Book")) <title>The Book</title>
函数
(source v ...) → procedure?
v : outputable/c
函数
(track v ...) → procedure?
v : outputable/c
> (output-xml (hr)) <hr />