Eleventy v0.7.0
Eleventy 🕚⚡️ is a Simpler Static Site Generator.
Documentation at v0-7-0.11ty.io
⭐️ Support Eleventy by starring us on GitHub! This will increase our project’s visibility on staticgen.com, a big giant list of static site generators.
🐦 Follow us on Twitter @eleven_ty!
Install
- Local project:
npm install @11ty/eleventy - Global:
npm install -g @11ty/eleventy - Read more about local versus global installation
Upgrade
- Local project:
npm update @11ty/eleventy - Global:
npm update -g @11ty/eleventy
Changelog
- 🚨🚨🚨 New Template Type: JavaScript Templates 🚨🚨🚨
*.11ty.js#118 #314- This is a big one and I’m pretty excited about it. Use arbitrary JavaScript to build a template file. This allows you to
requireany arbitrary templating engine and use it in Eleventy 😮. - Documentation
- This is a big one and I’m pretty excited about it. Use arbitrary JavaScript to build a template file. This allows you to
--serve: Pass in your own BrowserSync configuration options #123 #370--watchwill now re-run Eleventy if you make any changes in local JavaScript dependencies found in your JavaScript files (JS templates, data files, Eleventy config, et al). #325- Error Reporting: full stack trace shown on errors #324
- Pagination: Use
reverse: trueto reverse the order of the data set before pagination. #194 - Transforms: full support for asynchronous transforms. #164
- Benchmarking:
eleventy-benchmarkis a regression performance test for multi-version testing of various template types. #114
Bug fixes
- Mammoth Pull Request from @kleinfreund to fix various bugs with directory path resolution #231 #366
.eleventyignoreand.gitignorefiles were assumed to be in the input directory (not the project root). Eleventy now looks in both places #229 #360- Particularly embarrassing bug with Liquid Shortcodes having trouble with arguments that contained spaces (e.g.
"first name") #347 - Nunjucks Shortcodes (not Paired) threw an error when no arguments were passed. #372
- TemplateData Tests improved by @kleinfreund #362
- Shortcode names weren’t being namespaced properly #320
Milestone
Dependency Major Release Bumps
multimatch 2.1 → 3.0
- Requires node 6 and includes a
minimatchvulnerability fix - Full notes: https://github.com/sindresorhus/multimatch/releases/tag/v3.0.0