writeKlip

fun writeKlip(path: String, key: String, source: () -> String): String

Writes and returns a klip provided by source to a klip file specified by path under given key.

Return

value provided by source

Parameters

path

file path to retrieve and save klip for the given context

key

key to write the klip under in the file at path

source

a provider for a string representation to persist