Skip to content

beleon/mustache-janet

Repository files navigation

Mustache for Janet

Mustache module for janet via mustach and cJSON, based on pymustach mustach bindings.

Usage

(import mustache)

(mustache/render "Hello, {{name}}!" "{\"name\": \"world\"}")
# --> "Hello, world!"

(mustache/render-file "Hello, {{name}}!" "{\"name\": \"world\"}" "hi.txt")
# --> nil, writes 'Hello, world!' to file 'hi.txt'

Releases

No releases published

Packages

No packages published