prosaic-project
Folder-of-files project format and bundler for Prosaic templates.
prosaic-project loads, validates, tests, and bundles Prosaic template projects.
It is the library behind the prosaic new, prosaic build, and prosaic test
CLI subcommands.
Install
[]
= "1.0.1"
Project Layout
my-project/
prosaic.toml
templates/
partials/
fixtures/
tests/
The manifest configures engine settings, vocabulary dependencies, style preferences, and optional style profiles. Templates and partials are TOML files; fixtures are JSON context maps; tests are scenario files that render one or more events through a session and assert the resulting prose.
What It Provides
Project::load_from_dirfor loading the folder format.- Validation for template parse errors, missing fixtures, and pipe/schema issues.
Project::into_enginefor materializing a configuredprosaic_core::Engine.- Scenario execution through
ScenarioRunner. build_bundlefor portable JSON manifests or generated Rust source.- Starter scaffolds for blank, changelog, and vocabulary-pack projects.
- A catalog of reference
StyleProfilepresets.
Example
use ;
License
MIT OR Apache-2.0