Skip to content
/ musty Public

An incomplete Mustache implementation in Janet

License

Notifications You must be signed in to change notification settings

pyrmont/musty

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

31 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Musty

Musty is an incomplete Mustache implementation in Janet.

Mustache templates are strings with special values that are expanded when rendered. Musty handles the rendering in a straightforward way. Give it your template and a dictionary object and you get back to the expanded string. Too easy.

Musty passes Mustache's specs for variables, sections, inverted sections and comments. It does not implement partials, lambdas or custom delimiters.

Usage

Add Musty to the dependencies in your project.janet file:

  :dependencies ["https://github.com/pyrmont/musty"]

And then in your Janet code, import the module and call the render method:

(import musty)

(musty/render "Hello {{world}}!" {:world "everybody"})

Checkout the API for more information.

Bugs

Found a bug? I'd love to know about it. The best way is to report your bug in the Issues section on GitHub.

Licence

Musty is licensed under the MIT Licence. See LICENSE for more details.

About

An incomplete Mustache implementation in Janet

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages