beleon / mustache-janet

mustache bindings for janet

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

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'

About

mustache bindings for janet

License:MIT License


Languages

Language:C 99.4%Language:Janet 0.6%