Scoop API

scoop:scoop.core:0.1.0

includeStr

function includeStr

source · line 14
public
@Intrinsic("include_str")
public fun includeStr(path: String): String

Embeds the exact UTF-8 contents of a file inside the defining Cone. The constant path is relative to this call's source directory. Both the path and its resolved symlink target must stay inside the Cone directory. Invalid UTF-8 is a compile error; BOM and line endings are preserved. The file is read at compile time. This intrinsic has no function reference.