PowerPoint Zero: a portable MoonBit PPTX generator driven by TOML deck and page sources.
moon runwasm Milky2018/pptz <deck.toml> [--out <output.pptx>]moon runwasm . examples/minimal/deck.pptz.toml --out examples/minimal/dist/demo.pptxmoon runwasm . examples/minimal/deck.pptz.toml --out examples/minimal/dist/demo.pptxmoon check --target wasm
moon test --target wasmpub(all) struct DeckBundle {
deck_path : String
deck_dir : String
deck : Deck
pages : Array[ResolvedPage]
} derive(Eq, Debug)pub(all) enum Element {
TextElement(ElementBase, TextContent)
ShapeElement(ElementBase, ShapeSpec)
ImageElement(ElementBase, ImageSpec)
IconElement(ElementBase, IconSpec)
TableElement(ElementBase)
ChartElement(ElementBase)
} derive(Eq, Debug)pub(all) struct Page {
page_type : String?
background : Background?
elements : Array[Element]
} derive(Eq, Debug)Install
Download zipPowerPoint Zero: a portable MoonBit PPTX generator driven by TOML deck and page sources.