MoonBit Text Infrastructure

Moon Mustache is a reusable Mustache engine built for real MoonBit workflows.

It turns structured data into stable text output for scaffolding, config generation, report export, static content rendering, and downstream package reuse.

136 / 136 official mustache/spec fixtures passing
73 / 73 automated tests passing
9026 MoonBit LOC across library, CLI, demos, reports, and bridge code
Evaluator path

Three-minute check

moon test --deny-warn
moon run showcase
moon run official_spec_report
moon run cli --template "{{#user}}{{name}}{{/user}}{{> footer}}" --scan
What ships

More than a parser demo

  • Core library API for downstream MoonBit packages
  • CLI for inline, file-based, and bundle-driven rendering
  • Official spec reports and scenario-level artifacts
  • Vue playground backed by the repository's own MoonBit render bridge
Release posture

Ready to adopt

  • Published on mooncakes.io as bellesz0611/moon-mustache@0.1.0
  • GitHub and GitLink stay synchronized
  • Library CI, playground smoke, and release-readiness workflows are present
  • Governance, support, and contribution docs are included
Library

Reusable rendering API

Use checked rendering, JSON helpers, dotted lookups, strict diagnostics, and bundle APIs from another MoonBit package.

CLI

Tooling-friendly workflows

Render from inline templates or files, validate multi-file bundles, export plans, and scan variable or partial references before integration.

Reports

Evaluator-facing evidence

Generate scenario reports, official spec compatibility reports, and downstream consumer proof with reproducible command lines.

Playground

Browser-facing demo

The local Vue playground lets users edit template, JSON context, and partials while the MoonBit engine handles rendering and diagnostics underneath.

Rendered snapshots

Representative output shapes

Release Email

Subject: Moon Mustache 0.1.0 is live

Hello maintainer,

- Official fixture parity
- CLI diagnostics
- Vue playground

Regards,
MoonBit tooling team

Scaffold Summary

# moon-mustache

- CLI rendering
- Official spec coverage
- Bundle planning

Generated by moon-mustache.

Bundle Validation

profile: dev
templates: 3
normalized outputs: clean
duplicate targets: none
missing partials: none
Positioning

Why this project matters in MoonBit

Compared with ad hoc string concatenation

Moon Mustache gives reusable template syntax, better diagnostics, partial reuse, and more stable downstream workflows.

Compared with a contest-only prototype

This repository includes package publication, reports, CI, governance, downstream proof, and a browser-facing showcase layer.

Compared with building a custom template language

Mustache semantics are smaller, easier to trust, and already familiar across ecosystems, which lowers adoption friction for MoonBit users.

Release history

Recent evolution highlights

2026-07-07

Toolchain and CI alignment

Aligned the repository with MoonBit 0.10.3 guidance, `moon.mod`, formatting gates, and the official installer path.

2026-07-08

Published package posture

Shifted the repository from a local project into a mooncakes-published package with synchronized public mirrors.

2026-07-08

Public-facing project surfaces

Added a stronger Vue playground, static showcase site, release-readiness workflow, visual assets, and multiple adoption demos.

2026-07-09

Prepared manifest rendering

Pushed compile-once rendering into manifest workflows and made generated bundle output paths render from runtime context with validation.