ES2015 template literals in PureScript
In spago repl
> import Data.TemplateLiteral
> template "Hello, ${t}!" { t: Just "world" }
"Hello, world!"
> template "${obj.id} - ${obj.name}" { obj : { id: 1, name: "obj" } }
"1 - obj"
> template' "${text} - ${tr(text)}!" { text: "hello", tr: String.toUpper }
"hello - HELLO"
yarn
spago build -w
yarn jest --watch