Module

Data.TemplateLiteral

Package
purescript-template-literals
Repository
nonbili/purescript-template-literals

#template Source

template :: forall a. EncodeJson a => String -> a -> Effect String

The first argument is treated as template literals, and interpolated by the second argument.

Example:

> template "Hello, ${t}!" { t: "world" }
"Hello, world!"