Skip to content
This repository has been archived by the owner on Feb 8, 2025. It is now read-only.

Minimal example of creating pages from data that results in excessive calls to rendering template

Notifications You must be signed in to change notification settings

darthmall/11ty-paged-data-perf-example

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Eleventy Paged Data Performance Example

This project provides the minimal configuration necessary to see the the number of times a single template is called when implementing the create pages from data pattern in Eleventy.

Running

For convenience, you can run npm run benchmark to see the performance output from Eleventy. The important thing to note is that the aggregate benchmarks for both Template Compile and Template Render were called 20 times even though only 4 files were written.

You can see what's going by run DEBUG=Dev:Eleventy:TemplateContent npm run build 2>&1 | grep 'rendered content' which will you that the ./src/possum.md is being called 20 times.

About

Minimal example of creating pages from data that results in excessive calls to rendering template

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published