writeKlip

fun writeKlip(path: String, key: String, attributes: Map<String, String>, source: () -> String): Klip

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

attributes

klip attributes

source

a provider for a string representation to persist