1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24
//! This crate provides run-time string interpolation using key/value pairs,
//! oriented towards support for terminal applications. For documentation on the
//! format of mimi strings, see the README.md.
//!
//! # Examples
//!
//! ```
//! use std::collections::HashMap;
//! let formatter: mimi::Formatter = "foo is %[red]{$foo}".parse().unwrap();
//! let mut values = HashMap::new();
//! values.insert("foo", "value".to_owned());
//! println!("{}", formatter.ansi(&values));
//! ```
#![warn(missing_docs)]
#[macro_use]
extern crate pest_derive;
pub use crate::format::{Formatter, ParseFormatterError};
pub use crate::style::{Color, Modifier, Style};
mod format;
mod parse;
mod style;