Eleventy The possum is Eleventy’s mascot

Eleventy Documentation

This is an older version of Eleventy. Go to the newest Eleventy docs (current path: /docs/languages/haml/) or the full release history.
Menu

HAML

Template Languages:

Eleventy Short NameFile ExtensionNPM Package
haml.hamlhaml.js

You can override a .haml file’s template engine. Read more at Changing a Template’s Rendering Engine.

HAML Options #

Optional: Set your own Library instance New in v0.3.0 #

As an escape mechanism for advanced usage, pass in your own instance of the HAML library using the Configuration API.

module.exports = function(eleventyConfig) {
let haml = require("hamljs");
eleventyConfig.setLibrary("haml", haml);
};

Supported Features #

FeatureSyntax
🚫 FiltersNot yet supported :filterName some text Read more about Filters.
🚫 Eleventy Universal FiltersNot yet supported :filterName some text Read more about Filters.

Other pages in Template Languages: