11tyThe possum is Eleventy’s mascot

Eleventy Documentation

This is an older version of Eleventy. Full release history. Go to the newest Eleventy docs. You could try /docs/data-preprocessing/ although it may not exist.
Documentation Menu

Global Data File Preprocessing #

All global JSON data files (not template/directory data files) will be preprocessed with the template engine specified under the dataTemplateEngine configuration option. Note that package.json data is automatically available here under the pkg variable.

For example, if your dataTemplateEngine is using the default liquid engine you can do this:

{
  "version": "{{ pkg.version }}"
}

If using dataTemplateEngine: false in your configuration file, data file preprocessing will be skipped.