codetemplate
package codetemplate
Type members
Classlikes
object CodeTemplate
Provides a script-able means to produce some type B for any type A
Provides a script-able means to produce some type B for any type A
case
The context is passed to some black-box function which is intended to compute a result
The context is passed to some black-box function which is intended to compute a result
- Companion
- object
case
class Message[K, V](content: V, key: K, timestamp: Long, headers: Map[String, String], topic: String, offset: Long, partition: Int)
- Companion
- object
object StringTemplate
Functions for scripting string interpolation.
Functions for scripting string interpolation.
e.g turn some Context into a string, with use-cases like:
someJsonDoc = """ { "key" : "{{ record.key.toUpperCase }}", "foo" : "{{ if (record.content.path.to.foo) "x" else "y" }}", "double-host" : "{{ env.HOST * 2 }}" } """