Thanks to visit codestin.com
Credit goes to github.com

Skip to content

A partial implementation of POML purely in Rust.

License

Notifications You must be signed in to change notification settings

linmx0130/mini-poml-rs

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

67 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

mini-poml-rs

A partial implementation of POML purely in Rust.

This project is still in early development. Use at your own risk! The API may change significantly in the near term.

Features

Supported features

  • Variables
  • if / for attribute
  • <let> for assigning values to variables
  • <include> to include other files
  • Render as Markdown
  • <code> block
  • Expression evaluation
    • Array item and object field access
    • + / - / * / / / % arithmetic operators
    • ! / && / || logical operators
    • in / > / < / >= / <= rational operators
    • === / !== strict equality operators
    • Ternary operator a?b:c.

Features in work

  • Expression evaluation

Run Example

Examples of supported POML files can be found in supported_poml_docs/. An example program is provided in examples/. You can run it with cargo:

$ cargo run --example poml_render \
    supported_poml_docs/2_for_loop_on_context/main.poml \
    supported_poml_docs/2_for_loop_on_context/context.json

Copyright

Copyright (c) 2025, mini-poml-rs authors. All rights reserved.

Released under Mozilla Public License 2.0. See LICENSE.

About

A partial implementation of POML purely in Rust.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages