Skip to content

pat-thomas/metal-pet

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

12 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

metal-pet

Simple Clojure string templating.

Installation

Available via Clojars. Add the following to your project.clj dependencies.

[metal-pet "0.1.0-SNAPSHOT"]

Example usage

(ns example
  (:require [metal-pet.core :refer [render-template]]))

(render-template 
 "#{some-template-key} #{some-nested.template-key} some non templated string stuff #{some-default}" 
 {:some-template-key "stuff"
  :some-nested {:template-key "things"}}
 {:some-default "chicken wings"})
;; "stuff things some non templated string stuff chicken wings"

About

Simple Clojure string templating.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published