frawa / inline-files   0.7.1

Apache License 2.0 GitHub
Scala versions: 3.x
Scala.js versions: 1.x

inline-files

ci

inline-files Scala version support inline-files Scala version supportinline-files Scala version support

Scala Steward badge

This is a macro library for Scala 3.

Sometimes is is useful to access file contents without going to the file system. It comes in handly for ScalaJS projects, as files are read during compile time only.

Example

Inline files with extension .txt in sub folder folder1/folder2 under ./inline-files-root/:

   val inlined = inlineDeepTextFiles("./inline-files-root/", ".txt")
        .folder("folder1/folder2")
        .files()

See all examples in tests.

References