diff --git a/contrib/httpd/html-tags.factor b/contrib/httpd/html-tags.factor index fc769c5707..7d48e5d09b 100644 --- a/contrib/httpd/html-tags.factor +++ b/contrib/httpd/html-tags.factor @@ -56,53 +56,52 @@ SYMBOL: html : write-html ( str -- ) H{ { html t } } format ; -: html-word ( name def -- word ) +: html-word ( name def -- ) #! Define 'word creating' word to allow #! dynamically creating words. - >r "html" create dup r> define-compound ; + >r "html" create r> define-compound ; : "<" swap ">" append3 ; : def-for-html-word- ( name -- ) #! Return the name and code for the patterned #! word. - dup swap [ write-html ] curry html-word - define-open ; + dup swap [ write-html ] curry html-word ; : ">" append ; : def-for-html-word-foo> ( name -- ) #! Return the name and code for the foo> patterned #! word. - foo> [ ">" write-html ] html-word define-open ; + foo> [ ">" write-html ] html-word ; : [ "" % ] "" make ; : def-for-html-word- ( name -- ) #! Return the name and code for the patterned #! word. - dup [ write-html ] curry html-word define-close ; + dup [ write-html ] curry html-word ; : [ "<" % % "/>" % ] "" make ; : def-for-html-word- ( name -- ) #! Return the name and code for the patterned #! word. - dup swap [ write-html ] curry html-word drop ; + dup swap [ write-html ] curry html-word ; : foo/> "/>" append ; : def-for-html-word-foo/> ( name -- ) #! Return the name and code for the foo/> patterned #! word. - foo/> [ "/>" write-html ] html-word define-close ; + foo/> [ "/>" write-html ] html-word ; : define-closed-html-word ( name -- ) #! Given an HTML tag name, define the words for