Eleventy Plugin Template

screenshot of Eleventy Plugin Template
eleventy

A starter environment for creating plugins for Eleventy (11ty).

Overview

The Eleventy Plugin Template is a starter environment for creating plugins for Eleventy (11ty). It provides a structure and example code to help developers get started with writing plugins and testing them. The template is set up to run a single page 11ty site for testing plugin functionality. The build files are excluded from the final plugin package. The plugin functionality should be written in and exported from the .eleventy.js file. The template includes a sample of creating a filter plugin, with a default config and the ability to merge user options. Developers are advised to update the package.json file with their own details. The plugin can be tested within the template project or as a standalone plugin in another 11ty project.

Features

  • Starter environment for creating plugins for Eleventy
  • Excludes build files from the final plugin package
  • Provides example code for creating a filter plugin
  • Allows for setting default config and merging user options
  • Easy testing of plugin functionality within the template project
  • Can be used as a standalone plugin in another 11ty project

Summary

The Eleventy Plugin Template is a useful starting point for developers who want to create plugins for Eleventy. It provides a structure, example code, and testing options to make the plugin development process easier. By following the installation instructions and updating the necessary files, developers can quickly get started with writing and testing their own plugins.

eleventy
Eleventy

11ty is a static site generator that allows developers to build fast, modern websites using HTML, Markdown, and other templating languages, without the need for a complex build system.