Document html:simple-page

db4
Slava Pestov 2009-02-11 04:59:29 -06:00
parent e138355abe
commit 76761c4c61
2 changed files with 7 additions and 1 deletions

View File

@ -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." } ;

View File

@ -15,7 +15,7 @@ IN: html
</head>
<body><-></body>
</html>
XML> ; inline
XML> ;
: render-error ( message -- xml )
[XML <span class="error"><-></span> XML] ;