Skip to content

A simple, readable string formatting library for Gleam!

Notifications You must be signed in to change notification settings

SaphiraKai/glormat

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

glormat

A simple, readable string formatting library for Gleam!

Package Version Hex Docs

gleam add glormat
import gleam/io
import glormat.{assert_ok, replace, then, then_debug}

pub fn main() {
  "hello {object}, the {operation} is {result}"
    |> replace("object", with: "world")
    |> then("operation", with: "sum")
    |> then_debug("result", with: 1 + 2)
    |> assert_ok
    |> io.println // hello world, the sum is 3
}

Further documentation can be found at https://hexdocs.pm/glormat.

Development

gleam run   # Run the project
gleam test  # Run the tests
gleam shell # Run an Erlang shell

About

A simple, readable string formatting library for Gleam!

Resources

Stars

Watchers

Forks

Packages

 
 
 

Languages