11ty

Eleventy Documentation

This documentation is for an older version. Go to the newest Eleventy docs or check out the full release history.

Documentation Pages

Data Preprocessing #

All data files will be pre-processed with the template engine specified under the dataTemplateEngine configuration option. Note that package.json data is available here under the pkg variable.

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

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