Menu
- Why Eleventy?
- Get Started
- Community
- Working with Templates
- Using Data
- Configuration
- Template Languages
- Plugins
- API Services
- Release History
- Advanced
Eleventy
5.81s
Gatsby
43.36s
Using Data
Data can be used on a template from multiple different sources.
- Configure your Templates: Set data to configure how your template behaves in Eleventy.
- Eleventy Supplied Data: Use data that Eleventy provides to you.
- Set your own data anywhere in the Data Cascade to render in your templates.
Sources of Data Jump to heading
When the data is merged in the Eleventy Data Cascade, the order of priority for sources of data is (from highest priority to lowest):
- Computed Data
- Front Matter Data in a Template
- Template Data Files
- Directory Data Files (and ascending Parent Directories)
- Front Matter Data in Layouts (this moved in 1.0)
- Configuration API Global Data
- Global Data Files