Skip to content

lpil/chaplin

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

26 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Chaplin

Mustache text templates using Erlang's bbmustache package.

Package Version Hex Docs

import chaplin

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

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

  assert rendered == "Hello, World!"
}

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

About

Mustache text templates using Erlang's bbmustache package

Topics

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Contributors 4

  •  
  •  
  •  
  •