<micro-template v0.4.0> is out, supporting a typed...
# feed
m
micro-template v0.4.0 is out, supporting a typed template wrapper. Now you can do this:
Copy code
val hello = MicroTemplate("Hello, {title}{name}")
val typedHello = TypedMicroTemplate(hello, BusinessCard::class)

typedHello(BusinessCard(name = "Smith", title = "Mr.")) // Hello, Mr.Smith
typedHello(mapOf("name" to "Smith")) // won't compile!
It’s a tiny library but it’s growing day after day, thanks for passing by!
K 3