Embed file contents into your binary at compile time with embed:
embed "config.yaml" as config
puts configThe file is read during compilation and baked into the executable. No external files needed at runtime.
embed "header.html" as header
embed "footer.html" as footer
puts header + content + footerPaths are relative to the source file. Files must be in the same directory or a subdirectory — you cannot use ../ to escape:
embed "assets/logo.txt" as logo # OK
embed "../secret.txt" as secret # ERROR: escapes source directoryThis mirrors Go's embed restriction and prevents libraries from accessing files outside their own directory tree.