wip vite lib, typst markup
This commit is contained in:
35
main.typ
Normal file
35
main.typ
Normal file
@@ -0,0 +1,35 @@
|
||||
#let put(x, y, z, ..args) = {
|
||||
(
|
||||
"p",
|
||||
str(x),
|
||||
str(y),
|
||||
str(z),
|
||||
..args.pos().map(str),
|
||||
..args.named().pairs().map((u, v) => str(u) + "=" + str(v)),
|
||||
).join(" ")
|
||||
}
|
||||
|
||||
#html.html({
|
||||
html.head({
|
||||
html.link(rel: "stylesheet", href: "./mc-diorama.css")
|
||||
html.script(src: "./mc-diorama.mjs", type: "module")
|
||||
})
|
||||
html.body({
|
||||
html.main([
|
||||
= hello world
|
||||
])
|
||||
|
||||
html.elem("mc-diorama", {
|
||||
html.elem("mc-camera")
|
||||
html.elem(
|
||||
"mc-world",
|
||||
"
|
||||
p 0 0 0 stone;
|
||||
p 0 0 1 piston facing=up extended=false &
|
||||
|
||||
p 1 0 0 redstone_block;
|
||||
",
|
||||
)
|
||||
})
|
||||
})
|
||||
})
|
||||
Reference in New Issue
Block a user