@11ty/eleventy-plugin-haml

1.0.0 • Public • Published

@11ty/eleventy-plugin-haml

Adds support for .haml (Embedded JavaScript templates) files in Eleventy v3.0 and newer. Support for haml was moved out of core as part of Project Slipstream.

Installation

npm install @11ty/eleventy-plugin-haml

Add to your configuration file (ESM version shown):

import hamlPlugin from "@11ty/eleventy-plugin-haml";

export default function (eleventyConfig) {
	eleventyConfig.addPlugin(hamlPlugin);
}

Use more options:

import haml from "hamljs";
import hamlPlugin from "@11ty/eleventy-plugin-haml";

export default function (eleventyConfig) {
	eleventyConfig.addPlugin(hamlPlugin, {
		// Override the `haml` library instance
		eleventyLibraryOverride: haml,
	});
}

Versions

Current Tags

VersionDownloads (Last 7 Days)Tag
1.0.03latest
1.0.0-alpha.11alpha

Version History

VersionDownloads (Last 7 Days)Published
1.0.03
1.0.0-alpha.11

Package Sidebar

Install

npm i @11ty/eleventy-plugin-haml

Weekly Downloads

1

Version

1.0.0

License

none

Unpacked Size

2.3 kB

Total Files

3

Last publish

Collaborators

  • fortawesome-admin
  • zachleat