Skip to content

gleam-experiments/bbmustache

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

21 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

bbmustache

Gleam bindings to the bbmustache templating library.

import gleam/bbmustache.{string}
import gleeunit/should

pub fn main() {
  let assert Ok(template) = bbmustache.compile("Hello, {{name}}!")

  let rendered = bbmustache.render(template, [#("name", string("World"))])

  should.equal(rendered, "Hello, World!")
}

Quick start

# Build the project
rebar3 compile

# Run the eunit tests
rebar3 eunit

# Run the Erlang REPL
rebar3 shell

About

🐲 Render mustache templates to strings

Topics

Resources

License

Code of conduct

Stars

Watchers

Forks

Sponsor this project

  •  
  •  

Packages

No packages published

Contributors 4

  •  
  •  
  •  
  •