ResourceTextLoader

declslides.utils.ResourceTextLoader

Utility for loading UTF-8 text resources from the classpath.

Attributes

Graph
Supertypes
class Object
trait Matchable
class Any
Self type

Members list

Value members

Concrete methods

def load(path: String): Either[String, String]

Loads a text resource from the classpath.

Loads a text resource from the classpath.

The loader supports both classloader-style and class-style lookups so it behaves consistently across local runs, tests, and CI.

Value parameters

path

classpath resource path, with or without a leading slash

Attributes

Returns

the resource content, or a readable loading error