Home
main
Cmd
new
arg
args
env
clear_envs
status!
output!
exec!
Command
EnvVar
Output
Env
var!
dict!
platform!
Arch
Os
Html
attribute
text
raw
element
void_element
node_size
render_document
render_fragment
render_help
render_children
render_attr
escape_text
escape_attribute
html
base
head
link
meta
style
title
body
address
article
aside
footer
header
h1
h2
h3
h4
h5
h6
main
nav
section
blockquote
dd
div
dl
dt
figcaption
figure
hr
li
menu
ol
p
pre
ul
a
abbr
b
bdi
bdo
br
cite
code
data
dfn
em
i
kbd
mark
q
rp
rt
ruby
s
samp
small
span
strong
sub
sup
time
u
var_
wbr
area
audio
img
map
track
video
embed
iframe
object
picture
portal
source
svg
math
canvas
noscript
script
del
ins
caption
col
colgroup
table
tbody
td
tfoot
th
thead
tr
button
datalist
fieldset
form
input
label
legend
meter
optgroup
option
output
progress
select
textarea
details
dialog
summary
slot
template
Node
ElementBuilder
VoidBuilder
HtmlAttributes
attribute
accept
accept_charset
accesskey
action
align
allow
alt
aria_label
aria_labelled_by
aria_hidden
async
autocapitalize
autocomplete
autofocus
autoplay
background
bgcolor
border
buffered
capture
challenge
charset
checked
cite
class
code
codebase
color
cols
colspan
content
contenteditable
contextmenu
controls
coords
crossorigin
csp
data
data_attr
datetime
decoding
default
defer
dir
dirname
disabled
download
draggable
enctype
enterkeyhint
for_
form
formaction
formenctype
formmethod
formnovalidate
formtarget
headers
height
hidden
high
href
hreflang
http_equiv
icon
id
importance
integrity
intrinsicsize
inputmode
ismap
itemprop
keytype
kind
label
lang
language
loading
list
loop
low
manifest
max
maxlength
minlength
media
method
min
multiple
muted
name
novalidate
open
optimum
pattern
ping
placeholder
poster
preload
radiogroup
readonly
referrerpolicy
rel
required
reversed
role
rows
rowspan
sandbox
scope
scoped
selected
shape
size
sizes
slot
span
spellcheck
src
srcdoc
srclang
srcset
start
step
style
summary
tabindex
target
title
translate
type
usemap
value
width
wrap
Attribute
AttrBuilder
IOErr
Locale
get!
all!
OsStr
from_str
utf8
unix
unix_bytes
windows
windows_u16s
from_quote
from_interpolation
to_str_try
display
to_inspect
is_eq
to_hash
to_raw
from_raw
PageDecoder
page!
source!
from_source
from_effect
map
map2
run!
Input
Decoder
Path
from_os_str
to_os_str
utf8
from_quote
unix
unix_bytes
windows
windows_u16s
to_str
display
filename
ext
join
to_raw
from_raw
Path
Raw
SSG
pages!
pages_with!
read_source!
decode_page!
parse_markdown!
render_markdown!
write_file!
Page
Stderr
line!
write!
Stdout
line!
write!
Utc
now!
to_millis_since_epoch
from_millis_since_epoch
delta_as_nanos
delta_as_millis
Cmd
.
new
:
Str
->
Command
Cmd
.
arg
:
Command
,
Str
->
Command
Cmd
.
args
:
Command
,
List
(
Str
)
->
Command
Cmd
.
env
:
Command
,
Str
,
Str
->
Command
Cmd
.
clear_envs
:
Command
->
Command
Cmd
.
status!
:
Command
=>
Try
(
I32
, [
CmdError
(
IOErr
), ..])
Cmd
.
output!
:
Command
=>
Output
Cmd
.
exec!
:
Str
,
List
(
Str
)
=>
Try
({ }, [
CmdError
(
IOErr
),
NonZeroExit
(
I32
), ..])
Cmd
.
Command
: { program :
Str
, args :
List
(
Str
), envs :
List
(
EnvVar
), clear_envs :
Bool
}
Cmd
.
EnvVar
: { key :
Str
, value :
Str
}
Cmd
.
Output
: { exit_code :
I32
, stdout :
List
(
U8
), stderr :
List
(
U8
) }
Env
.
var!
:
Str
=>
Try
(
Str
, [
VarNotFound
(
Str
), ..])
Env
.
dict!
: ()
=>
Dict
(
Str
,
Str
)
Env
.
platform!
: ()
=>
{ arch :
Arch
, os :
Os
}
Env
.
Arch
: [
X86
,
X64
,
Arm
,
Aarch64
,
Other
(
Str
)]
Env
.
Os
: [
Linux
,
Macos
,
Windows
,
Other
(
Str
)]
Html
.
attribute
:
Str
->
Str
->
Attribute
Html
.
text
:
Str
->
Node
Html
.
raw
:
Str
->
Node
Html
.
element
:
Str
->
List
(
Attribute
),
List
(
Node
)
->
Node
Html
.
void_element
:
Str
->
List
(
Attribute
)
->
Node
Html
.
node_size
:
Node
->
U64
Html
.
render_document
:
Node
->
Str
Html
.
render_fragment
:
Node
->
Str
Html
.
render_help
:
Str
,
Node
->
Str
Html
.
render_children
:
Str
,
List
(
Node
)
->
Str
Html
.
render_attr
:
Str
,
Attribute
->
Str
Html
.
escape_text
:
Str
->
Str
Html
.
escape_attribute
:
Str
->
Str
Html
.
html
:
ElementBuilder
Html
.
base
:
VoidBuilder
Html
.
head
:
ElementBuilder
Html
.
link
:
VoidBuilder
Html
.
meta
:
VoidBuilder
Html
.
style
:
ElementBuilder
Html
.
title
:
ElementBuilder
Html
.
body
:
ElementBuilder
Html
.
address
:
ElementBuilder
Html
.
article
:
ElementBuilder
Html
.
aside
:
ElementBuilder
Html
.
footer
:
ElementBuilder
Html
.
header
:
ElementBuilder
Html
.
h1
:
ElementBuilder
Html
.
h2
:
ElementBuilder
Html
.
h3
:
ElementBuilder
Html
.
h4
:
ElementBuilder
Html
.
h5
:
ElementBuilder
Html
.
h6
:
ElementBuilder
Html
.
main
:
ElementBuilder
Html
.
nav
:
ElementBuilder
Html
.
section
:
ElementBuilder
Html
.
blockquote
:
ElementBuilder
Html
.
dd
:
ElementBuilder
Html
.
div
:
ElementBuilder
Html
.
dl
:
ElementBuilder
Html
.
dt
:
ElementBuilder
Html
.
figcaption
:
ElementBuilder
Html
.
figure
:
ElementBuilder
Html
.
hr
:
VoidBuilder
Html
.
li
:
ElementBuilder
Html
.
menu
:
ElementBuilder
Html
.
ol
:
ElementBuilder
Html
.
p
:
ElementBuilder
Html
.
pre
:
ElementBuilder
Html
.
ul
:
ElementBuilder
Html
.
a
:
ElementBuilder
Html
.
abbr
:
ElementBuilder
Html
.
b
:
ElementBuilder
Html
.
bdi
:
ElementBuilder
Html
.
bdo
:
ElementBuilder
Html
.
br
:
VoidBuilder
Html
.
cite
:
ElementBuilder
Html
.
code
:
ElementBuilder
Html
.
data
:
ElementBuilder
Html
.
dfn
:
ElementBuilder
Html
.
em
:
ElementBuilder
Html
.
i
:
ElementBuilder
Html
.
kbd
:
ElementBuilder
Html
.
mark
:
ElementBuilder
Html
.
q
:
ElementBuilder
Html
.
rp
:
ElementBuilder
Html
.
rt
:
ElementBuilder
Html
.
ruby
:
ElementBuilder
Html
.
s
:
ElementBuilder
Html
.
samp
:
ElementBuilder
Html
.
small
:
ElementBuilder
Html
.
span
:
ElementBuilder
Html
.
strong
:
ElementBuilder
Html
.
sub
:
ElementBuilder
Html
.
sup
:
ElementBuilder
Html
.
time
:
ElementBuilder
Html
.
u
:
ElementBuilder
Html
.
var_
:
ElementBuilder
Html
.
wbr
:
VoidBuilder
Html
.
area
:
VoidBuilder
Html
.
audio
:
ElementBuilder
Html
.
img
:
VoidBuilder
Html
.
map
:
ElementBuilder
Html
.
track
:
VoidBuilder
Html
.
video
:
ElementBuilder
Html
.
embed
:
VoidBuilder
Html
.
iframe
:
ElementBuilder
Html
.
object
:
ElementBuilder
Html
.
picture
:
ElementBuilder
Html
.
portal
:
ElementBuilder
Html
.
source
:
VoidBuilder
Html
.
svg
:
ElementBuilder
Html
.
math
:
ElementBuilder
Html
.
canvas
:
ElementBuilder
Html
.
noscript
:
ElementBuilder
Html
.
script
:
ElementBuilder
Html
.
del
:
ElementBuilder
Html
.
ins
:
ElementBuilder
Html
.
caption
:
ElementBuilder
Html
.
col
:
VoidBuilder
Html
.
colgroup
:
ElementBuilder
Html
.
table
:
ElementBuilder
Html
.
tbody
:
ElementBuilder
Html
.
td
:
ElementBuilder
Html
.
tfoot
:
ElementBuilder
Html
.
th
:
ElementBuilder
Html
.
thead
:
ElementBuilder
Html
.
tr
:
ElementBuilder
Html
.
button
:
ElementBuilder
Html
.
datalist
:
ElementBuilder
Html
.
fieldset
:
ElementBuilder
Html
.
form
:
ElementBuilder
Html
.
input
:
VoidBuilder
Html
.
label
:
ElementBuilder
Html
.
legend
:
ElementBuilder
Html
.
meter
:
ElementBuilder
Html
.
optgroup
:
ElementBuilder
Html
.
option
:
ElementBuilder
Html
.
output
:
ElementBuilder
Html
.
progress
:
ElementBuilder
Html
.
select
:
ElementBuilder
Html
.
textarea
:
ElementBuilder
Html
.
details
:
ElementBuilder
Html
.
dialog
:
ElementBuilder
Html
.
summary
:
ElementBuilder
Html
.
slot
:
ElementBuilder
Html
.
template
:
ElementBuilder
Html
.
Node
Html
.
ElementBuilder
:
List
(
Attribute
),
List
(
Node
)
->
Node
Html
.
VoidBuilder
:
List
(
Attribute
)
->
Node
HtmlAttributes
.
attribute
:
Str
->
Str
->
Attribute
HtmlAttributes
.
accept
:
AttrBuilder
HtmlAttributes
.
accept_charset
:
AttrBuilder
HtmlAttributes
.
accesskey
:
AttrBuilder
HtmlAttributes
.
action
:
AttrBuilder
HtmlAttributes
.
align
:
AttrBuilder
HtmlAttributes
.
allow
:
AttrBuilder
HtmlAttributes
.
alt
:
AttrBuilder
HtmlAttributes
.
aria_label
:
AttrBuilder
HtmlAttributes
.
aria_labelled_by
:
AttrBuilder
HtmlAttributes
.
aria_hidden
:
AttrBuilder
HtmlAttributes
.
async
:
AttrBuilder
HtmlAttributes
.
autocapitalize
:
AttrBuilder
HtmlAttributes
.
autocomplete
:
AttrBuilder
HtmlAttributes
.
autofocus
:
AttrBuilder
HtmlAttributes
.
autoplay
:
AttrBuilder
HtmlAttributes
.
background
:
AttrBuilder
HtmlAttributes
.
bgcolor
:
AttrBuilder
HtmlAttributes
.
border
:
AttrBuilder
HtmlAttributes
.
buffered
:
AttrBuilder
HtmlAttributes
.
capture
:
AttrBuilder
HtmlAttributes
.
challenge
:
AttrBuilder
HtmlAttributes
.
charset
:
AttrBuilder
HtmlAttributes
.
checked
:
AttrBuilder
HtmlAttributes
.
cite
:
AttrBuilder
HtmlAttributes
.
class
:
AttrBuilder
HtmlAttributes
.
code
:
AttrBuilder
HtmlAttributes
.
codebase
:
AttrBuilder
HtmlAttributes
.
color
:
AttrBuilder
HtmlAttributes
.
cols
:
AttrBuilder
HtmlAttributes
.
colspan
:
AttrBuilder
HtmlAttributes
.
content
:
AttrBuilder
HtmlAttributes
.
contenteditable
:
AttrBuilder
HtmlAttributes
.
contextmenu
:
AttrBuilder
HtmlAttributes
.
controls
:
AttrBuilder
HtmlAttributes
.
coords
:
AttrBuilder
HtmlAttributes
.
crossorigin
:
AttrBuilder
HtmlAttributes
.
csp
:
AttrBuilder
HtmlAttributes
.
data
:
AttrBuilder
HtmlAttributes
.
data_attr
:
Str
,
Str
->
Attribute
HtmlAttributes
.
datetime
:
AttrBuilder
HtmlAttributes
.
decoding
:
AttrBuilder
HtmlAttributes
.
default
:
AttrBuilder
HtmlAttributes
.
defer
:
AttrBuilder
HtmlAttributes
.
dir
:
AttrBuilder
HtmlAttributes
.
dirname
:
AttrBuilder
HtmlAttributes
.
disabled
:
AttrBuilder
HtmlAttributes
.
download
:
AttrBuilder
HtmlAttributes
.
draggable
:
AttrBuilder
HtmlAttributes
.
enctype
:
AttrBuilder
HtmlAttributes
.
enterkeyhint
:
AttrBuilder
HtmlAttributes
.
for_
:
AttrBuilder
HtmlAttributes
.
form
:
AttrBuilder
HtmlAttributes
.
formaction
:
AttrBuilder
HtmlAttributes
.
formenctype
:
AttrBuilder
HtmlAttributes
.
formmethod
:
AttrBuilder
HtmlAttributes
.
formnovalidate
:
AttrBuilder
HtmlAttributes
.
formtarget
:
AttrBuilder
HtmlAttributes
.
headers
:
AttrBuilder
HtmlAttributes
.
height
:
AttrBuilder
HtmlAttributes
.
hidden
:
AttrBuilder
HtmlAttributes
.
high
:
AttrBuilder
HtmlAttributes
.
href
:
AttrBuilder
HtmlAttributes
.
hreflang
:
AttrBuilder
HtmlAttributes
.
http_equiv
:
AttrBuilder
HtmlAttributes
.
icon
:
AttrBuilder
HtmlAttributes
.
id
:
AttrBuilder
HtmlAttributes
.
importance
:
AttrBuilder
HtmlAttributes
.
integrity
:
AttrBuilder
HtmlAttributes
.
intrinsicsize
:
AttrBuilder
HtmlAttributes
.
inputmode
:
AttrBuilder
HtmlAttributes
.
ismap
:
AttrBuilder
HtmlAttributes
.
itemprop
:
AttrBuilder
HtmlAttributes
.
keytype
:
AttrBuilder
HtmlAttributes
.
kind
:
AttrBuilder
HtmlAttributes
.
label
:
AttrBuilder
HtmlAttributes
.
lang
:
AttrBuilder
HtmlAttributes
.
language
:
AttrBuilder
HtmlAttributes
.
loading
:
AttrBuilder
HtmlAttributes
.
list
:
AttrBuilder
HtmlAttributes
.
loop
:
AttrBuilder
HtmlAttributes
.
low
:
AttrBuilder
HtmlAttributes
.
manifest
:
AttrBuilder
HtmlAttributes
.
max
:
AttrBuilder
HtmlAttributes
.
maxlength
:
AttrBuilder
HtmlAttributes
.
minlength
:
AttrBuilder
HtmlAttributes
.
media
:
AttrBuilder
HtmlAttributes
.
method
:
AttrBuilder
HtmlAttributes
.
min
:
AttrBuilder
HtmlAttributes
.
multiple
:
AttrBuilder
HtmlAttributes
.
muted
:
AttrBuilder
HtmlAttributes
.
name
:
AttrBuilder
HtmlAttributes
.
novalidate
:
AttrBuilder
HtmlAttributes
.
open
:
AttrBuilder
HtmlAttributes
.
optimum
:
AttrBuilder
HtmlAttributes
.
pattern
:
AttrBuilder
HtmlAttributes
.
ping
:
AttrBuilder
HtmlAttributes
.
placeholder
:
AttrBuilder
HtmlAttributes
.
poster
:
AttrBuilder
HtmlAttributes
.
preload
:
AttrBuilder
HtmlAttributes
.
radiogroup
:
AttrBuilder
HtmlAttributes
.
readonly
:
AttrBuilder
HtmlAttributes
.
referrerpolicy
:
AttrBuilder
HtmlAttributes
.
rel
:
AttrBuilder
HtmlAttributes
.
required
:
AttrBuilder
HtmlAttributes
.
reversed
:
AttrBuilder
HtmlAttributes
.
role
:
AttrBuilder
HtmlAttributes
.
rows
:
AttrBuilder
HtmlAttributes
.
rowspan
:
AttrBuilder
HtmlAttributes
.
sandbox
:
AttrBuilder
HtmlAttributes
.
scope
:
AttrBuilder
HtmlAttributes
.
scoped
:
AttrBuilder
HtmlAttributes
.
selected
:
AttrBuilder
HtmlAttributes
.
shape
:
AttrBuilder
HtmlAttributes
.
size
:
AttrBuilder
HtmlAttributes
.
sizes
:
AttrBuilder
HtmlAttributes
.
slot
:
AttrBuilder
HtmlAttributes
.
span
:
AttrBuilder
HtmlAttributes
.
spellcheck
:
AttrBuilder
HtmlAttributes
.
src
:
AttrBuilder
HtmlAttributes
.
srcdoc
:
AttrBuilder
HtmlAttributes
.
srclang
:
AttrBuilder
HtmlAttributes
.
srcset
:
AttrBuilder
HtmlAttributes
.
start
:
AttrBuilder
HtmlAttributes
.
step
:
AttrBuilder
HtmlAttributes
.
style
:
AttrBuilder
HtmlAttributes
.
summary
:
AttrBuilder
HtmlAttributes
.
tabindex
:
AttrBuilder
HtmlAttributes
.
target
:
AttrBuilder
HtmlAttributes
.
title
:
AttrBuilder
HtmlAttributes
.
translate
:
AttrBuilder
HtmlAttributes
.
type
:
AttrBuilder
HtmlAttributes
.
usemap
:
AttrBuilder
HtmlAttributes
.
value
:
AttrBuilder
HtmlAttributes
.
width
:
AttrBuilder
HtmlAttributes
.
wrap
:
AttrBuilder
HtmlAttributes
.
Attribute
:= [
Attribute
(
Str
,
Str
)]
HtmlAttributes
.
AttrBuilder
:
Str
->
Attribute
Locale
.
get!
: ()
=>
Try
(
Str
, [
NotAvailable
, ..])
Locale
.
all!
: ()
=>
List
(
Str
)
OsStr
.
from_str
:
Str
->
OsStr
OsStr
.
utf8
:
Str
->
OsStr
OsStr
.
unix
:
Str
->
OsStr
OsStr
.
unix_bytes
:
List
(
U8
)
->
OsStr
OsStr
.
windows
:
Str
->
OsStr
OsStr
.
windows_u16s
:
List
(
U16
)
->
OsStr
OsStr
.
from_quote
:
Str
->
Try
(
OsStr
, [
BadQuotedBytes
(
Str
)])
OsStr
.
from_interpolation
:
Str
,
Iter
((
Str
,
Str
))
->
OsStr
OsStr
.
to_str_try
:
OsStr
->
Try
(
Str
, [
InvalidStr
(
U64
)])
OsStr
.
display
:
OsStr
->
Str
OsStr
.
to_inspect
:
OsStr
->
Str
OsStr
.
is_eq
:
OsStr
,
OsStr
->
Bool
OsStr
.
to_hash
:
OsStr
,
Hasher
->
Hasher
OsStr
.
to_raw
:
OsStr
->
[
Utf8
(
Str
),
UnixBytes
(
List
(
U8
)),
WindowsU16s
(
List
(
U16
))]
OsStr
.
from_raw
: [
Utf8
(
Str
),
UnixBytes
(
List
(
U8
)),
WindowsU16s
(
List
(
U16
))]
->
OsStr
PageDecoder
.
page!
:
Decoder
(
page
,
page
,
err
)
PageDecoder
.
source!
:
Decoder
(
page
,
Str
,
err
)
PageDecoder
.
from_source
: (
Str
->
Try
(
value
,
err
))
->
Decoder
(
page
,
value
,
err
)
PageDecoder
.
from_effect
: (
Input
(
page
)
=>
Try
(
value
,
err
))
->
Decoder
(
page
,
value
,
err
)
PageDecoder
.
map
:
Decoder
(
page
,
a
,
err
), (
a
->
b
)
->
Decoder
(
page
,
b
,
err
)
PageDecoder
.
map2
:
Decoder
(
page
,
a
,
err
),
Decoder
(
page
,
b
,
err
), (
a
,
b
->
c
)
->
Decoder
(
page
,
c
,
err
)
PageDecoder
.
run!
:
Decoder
(
page
,
value
,
err
),
Input
(
page
)
=>
Try
(
value
,
err
)
PageDecoder
.
Input
: { page :
page
, source :
Str
}
PageDecoder
.
Decoder
:
Input
(
page
)
=>
Try
(
value
,
err
)
Path
.
from_os_str
:
OsStr
->
Path
Path
.
to_os_str
:
Path
->
OsStr
Path
.
utf8
:
Str
->
Path
Path
.
from_quote
:
Str
->
Try
(
Path
, [
BadQuotedBytes
(
Str
)])
Path
.
unix
:
Str
->
Path
Path
.
unix_bytes
:
List
(
U8
)
->
Path
Path
.
windows
:
Str
->
Path
Path
.
windows_u16s
:
List
(
U16
)
->
Path
Path
.
to_str
:
Path
->
Try
(
Str
, [
InvalidStr
(
U64
)])
Path
.
display
:
Path
->
Str
Path
.
filename
:
Path
->
Try
(
Path
, [
IsDirPath
,
EndsInDots
])
Path
.
ext
:
Path
->
Try
(
Path
, [
IsDirPath
,
EndsInDots
])
Path
.
join
:
Path
,
Str
->
Path
Path
.
to_raw
:
Path
->
Raw
Path
.
from_raw
:
Raw
->
Path
Path
.
Path
:
Path
Path
.
Raw
: [
Utf8
(
Str
),
UnixBytes
(
List
(
U8
)),
WindowsU16s
(
List
(
U16
))]
SSG
.
pages!
:
Path
=>
Try
(
List
(
Page
), [
PagesError
(
Str
), ..])
SSG
.
pages_with!
: { input_dir :
Path
, source_extension :
Str
}
=>
Try
(
List
(
Page
), [
PagesError
(
Str
), ..])
SSG
.
read_source!
:
Page
=>
Try
(
Str
, [
ReadError
(
Str
), ..])
SSG
.
decode_page!
:
Page
, ({ page :
Page
, source :
Str
}
=>
Try
(
value
, [
ReadError
(
Str
), ..
err
]))
=>
Try
(
value
, [
ReadError
(
Str
), ..
err
])
SSG
.
parse_markdown!
:
Path
=>
Try
(
Str
, [
ParseError
(
Str
), ..])
SSG
.
render_markdown!
: { source_path :
Path
, markdown :
Str
}
=>
Try
(
Str
, [
ParseError
(
Str
), ..])
SSG
.
write_file!
: { output_dir :
Path
, output_path :
Path
, content :
Str
}
=>
Try
({ }, [
WriteError
(
Str
), ..])
SSG
.
Page
: { url :
Str
, source_path :
Path
, output_path :
Path
}
Stderr
.
line!
:
Str
=>
Try
({ }, [
StderrErr
(
IOErr
), ..])
Stderr
.
write!
:
Str
=>
Try
({ }, [
StderrErr
(
IOErr
), ..])
Stdout
.
line!
:
Str
=>
Try
({ }, [
StdoutErr
(
IOErr
), ..])
Stdout
.
write!
:
Str
=>
Try
({ }, [
StdoutErr
(
IOErr
), ..])
Utc
.
now!
: ()
=>
U128
Utc
.
to_millis_since_epoch
:
U128
->
U128
Utc
.
from_millis_since_epoch
:
U128
->
U128
Utc
.
delta_as_nanos
:
U128
,
U128
->
U128
Utc
.
delta_as_millis
:
U128
,
U128
->
U128