Eleventy Shortcomps

screenshot of Eleventy Shortcomps

Starter project for static site, using Eleventy and shortcode components pattern.

Overview:

The eleventy-shortcomps project is a starter project for creating static sites using the Eleventy static site generator and the shortcode components (shortcomps) pattern. The goal of this project is to provide a way to create and maintain reusable, framework-agnostic functional stateless components. These components can be used in static sites or in environments that already utilize frameworks like React or Vue. The components are composable and serve as a single source of truth across all applications. By using the component model, developers can reap the benefits of components without needing to use a framework right away.

Features:

  • Reusable, framework-agnostic components: The project allows for the creation of functional stateless components that can be used across different environments and frameworks.
  • Composable components: The components can be nested within each other, allowing for easy composition of complex UI elements.
  • Shortcode components: The project uses Eleventy's shortcode feature to define and include components in templates.
  • Props variation: Developers can pass component parameters using a single props object, similar to how it is done in framework-based component models like React.

Summary:

The eleventy-shortcomps project is a starter project for static sites that allows developers to create reusable, framework-agnostic components. These components can be used in static sites or in environments using frameworks like React or Vue. The project leverages Eleventy's shortcode feature to define and include components in templates. By using the props variation approach, developers can pass component parameters using a single props object, similar to how it is done in framework-based component models. This project provides a way to harness the benefits of the component model without requiring the use of a framework right away.