Read json/yaml/toml file inside a page bundle

That’s specific to getJSON and getCSV functions. But you can have JSON/YAML/TOML data files in the site’s data/ dir and have it read using .Site.Data.foo (assuming the file base name is foo) – recent example.


@cmal Sorry, I misunderstood the question… read too fast.

The OP said:

de /data directory?

So I was quick on the trigger to assume that this was a question about multi-language site (because “de”) and data/.

I now see that you meant to say that you can read only JSON and CSV data files from outside data/.