Skip to content

An (almost complete) implementation of the Mustache templating language for Carp

Notifications You must be signed in to change notification settings

carpentry-org/mustache

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

10 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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!

About

An (almost complete) implementation of the Mustache templating language for Carp

Topics

Resources

Stars

Watchers

Forks

Packages

No packages published

Languages