A testable way to load resources. See ResourceLoader for documentation.
Also see wisp-resource-loader-testing .
val resourceLoader: ResourceLoader = ResourceLoader(
mapOf(
"classpath:" to ClasspathResourceLoaderBackend,
"memory:" to MemoryResourceLoaderBackend(),
"filesystem:" to FilesystemLoaderBackend,
)
)
val resource = resourceLoader.utf8("classpath:/wisp/resources/ResourceLoaderTest.txt")