Skip to content

Latest commit

 

History

History
29 lines (20 loc) · 649 Bytes

README.md

File metadata and controls

29 lines (20 loc) · 649 Bytes

mustache

Mustache templating for Carp.

Installing

(load "git@github.com:carpentry-org/mustache@0.0.5")

Usage

The module Mustache only exports one function: template. This function accepts a string value to be templated, and a map of values that are the template context. That map must be from String to Mustache, where Mustache is either a Str or a Lambda.

(Mustache.template
  "this is a super {{ adjective }} library"
  &{@"adjective" (Mustache.Str @"cool")}
)

More comprehensive docs can be found online.


Have fun!