s-inf-04.mkiv /size: 1140 b    last modification: 2020-07-01 14:35
1
\usemodule
[
art
-
0
1
]
2 3
\setupbodyfont
[
1
0
pt
]
4 5
\starttext
6 7
\startluacode
8 9
context
.
subject
(
"
Configuration files
"
)
10 11
local
configurations
=
resolvers
.
instance
.
specification
12 13
context
.
starttabulate
{
"
|Tl|Tl|
"
}
14
for
i
=
1
,
#
configurations
do
15
context
.
NC
(
)
16
context
(
i
)
17
context
.
NC
(
)
18
context
.
verbatim
(
resolvers
.
resolve
(
configurations
[
i
]
)
)
19
context
.
NC
(
)
20
context
.
NR
(
)
21
end
22
context
.
stoptabulate
(
)
23 24
local
list
=
resolvers
.
expandedpathfromlist
(
resolvers
.
splitpath
(
resolvers
.
luacnfspec
)
)
25 26
context
.
subject
(
"
Configuration paths
"
)
27 28
-- context.verbatim(resolvers.luacnfspec)
29 30
context
.
starttabulate
{
"
|Tl|Tl|
"
}
31
for
i
=
1
,
#
list
do
32
local
li
=
resolvers
.
resolve
(
list
[
i
]
)
33
context
.
NC
(
)
34
if
lfs
.
isdir
(
li
)
then
35
context
(
"
-
"
)
36
else
37
context
(
"
+
"
)
38
end
39
context
.
NC
(
)
40
context
.
verbatim
(
li
)
41
context
.
NC
(
)
42
context
.
NR
(
)
43
end
44
context
.
stoptabulate
(
)
45 46
\stopluacode
47 48
\stoptext
49