Template Languages
Eleventy’s super power is that it is built on an extensible architecture that can work with one or more template languages in the same project.
Not sure which one to choose? Liquid is a popular option for building creating HTML pages, with plenty of examples in this documentation.
- HTML: Pre-processed by default as Liquid templates
- Markdown: Most common language for authoring content
- JavaScript: Run JavaScript to generate content
- Custom: Use your own template language
- WebC: Web components with server rendering
- Nunjucks: Popular language for generating HTML and more
- Liquid: Simple language also used by Jekyll and Shopify
- Handlebars: A logicless templating engine similar to Mustache
- Mustache: Fast, minimal template language
- EJS: Embedded JavaScript
- HAML: Shorthand syntax for HTML
- Pug: Shorthand syntax for HTML
- Sass: CSS extension language
- Virtual Templates: Create a template or layout that only lives in your configuration file.
- Overriding Languages
These template types require plugin installation.
Other pages in Eleventy Projects
- Get Started
- Command Line Usage
- Add a Configuration File
- Copy Files to Output
- Add CSS, JS, Fonts
- Importing Content
- Configure Templates with Data
- Using Data in Templates
- Template Languages
- Template Features
- Environment Variables
- Internationalization (i18n)
- Watch Files and Dev Servers
- Common Pitfalls
- Advanced