Document html:simple-page
parent
e138355abe
commit
76761c4c61
|
@ -0,0 +1,6 @@
|
|||
IN: html
|
||||
USING: help.markup help.syntax strings ;
|
||||
|
||||
HELP: simple-page
|
||||
{ $values { "title" string } { "head" "XML data" } { "body" "XML data" } }
|
||||
{ $description "Constructs a simple XHTML page with a " { $snippet "head" } " and " { $snippet "body" } " tag. The given XML data is spliced into the two child tags, and a title is also added to the head tag." } ;
|
|
@ -15,7 +15,7 @@ IN: html
|
|||
</head>
|
||||
<body><-></body>
|
||||
</html>
|
||||
XML> ; inline
|
||||
XML> ;
|
||||
|
||||
: render-error ( message -- xml )
|
||||
[XML <span class="error"><-></span> XML] ;
|
||||
|
|
Loading…
Reference in New Issue