Klenodexample

Plugin Reference

Data Plugins

JsonPlugin, YamlPlugin, TomlPlugin, and TextPlugin import structured data and plain text as Ruby values.

Structured Data

Data plugins parse source files during graph collection and expose runtime-safe values.

Posts = import("./posts.toml")
Settings = import("./settings.json")
Copy = import("./copy.yaml")

These imports are useful for small content files, fixtures, route metadata, and examples that should travel with the bundle.

Text

TextPlugin imports plain text as a string.

License = import("./LICENSE.txt")

Unsupported file types should fail with a clear resolve or load error instead of silently becoming text.