added link element, rel attribute for styled-page.
parent
13bcbfd465
commit
616f2bd2d9
|
@ -270,6 +270,7 @@ USE: logic
|
||||||
[
|
[
|
||||||
"input"
|
"input"
|
||||||
"br"
|
"br"
|
||||||
|
"link"
|
||||||
] [ define-open-html-word ] each
|
] [ define-open-html-word ] each
|
||||||
|
|
||||||
! Define some attributes
|
! Define some attributes
|
||||||
|
@ -277,5 +278,5 @@ USE: logic
|
||||||
"method" "action" "type" "value" "name"
|
"method" "action" "type" "value" "name"
|
||||||
"size" "href" "class" "border" "rows" "cols"
|
"size" "href" "class" "border" "rows" "cols"
|
||||||
"id" "onclick" "style" "valign" "accesskey"
|
"id" "onclick" "style" "valign" "accesskey"
|
||||||
"src" "language" "colspan" "onchange"
|
"src" "language" "colspan" "onchange" "rel"
|
||||||
] [ define-attribute-word ] each
|
] [ define-attribute-word ] each
|
|
@ -40,6 +40,18 @@ USE: html
|
||||||
<body> [ call ] </body>
|
<body> [ call ] </body>
|
||||||
] </html> ;
|
] </html> ;
|
||||||
|
|
||||||
|
: styled-page ( title stylesheet-quot quot -- )
|
||||||
|
#! Call the quotation, with all output going to the
|
||||||
|
#! body of an html page with the given title. stylesheet-quot
|
||||||
|
#! is called to generate the required stylesheet.
|
||||||
|
<html> [
|
||||||
|
<head> [
|
||||||
|
<title> [ rot write ] </title>
|
||||||
|
swap call
|
||||||
|
] </head>
|
||||||
|
<body> [ call ] </body>
|
||||||
|
] </html> ;
|
||||||
|
|
||||||
: paragraph ( str -- )
|
: paragraph ( str -- )
|
||||||
#! Output the string as an html paragraph
|
#! Output the string as an html paragraph
|
||||||
<p> [ write ] </p> ;
|
<p> [ write ] </p> ;
|
||||||
|
|
Loading…
Reference in New Issue