Handbook
Glossary
url-of ( object -- url )
Vocabulary
io
.
streams
.
html
Inputs
object
an
object
Outputs
url
a
string
Generic word contract
Outputs a link to a page displaying a presentation of the given object. This word is called when
write-object
is called on
html-writer
instances.
Definition
IN:
io.streams.html
GENERIC:
url-of
( object -- url )
Methods
USING:
io.streams.html
kernel
;
M:
object
url-of
drop
f
;
USING:
accessors
io.pathnames
io.streams.html
kernel
sequences
splitting
;
M:
pathname
url-of
string>>
"resource:"
?head
[
"https://github.com/factor/factor/blob/master/"
prepend
]
[
drop
f
]
if
;
USING:
help.html
help.topics
io.streams.html
;
M:
topic
url-of
topic>filename
;