0.0.1 • Published 1 year ago

@web-alchemy/eleventy-plugin-pug v0.0.1

Weekly downloads
-
License
-
Repository
github
Last release
1 year ago

Eleventy plugin for Pug template engine

Installation

npm install @web-alchemy/eleventy-plugin-pug

Usage

// eleventy.config.js
const pugPlugin = require('../eleventy.config.js');

module.exports = function(eleventyConfig) {
  eleventyConfig.addPlugin(pugPlugin, {
    // https://pugjs.org/api/reference.html#options
    pugOptions: {},
    
    // optional `filter` function to check, which templates should render and which not
    filter(inputContents, inputPath) {
      return true;
    }
  });
}

See usage example in repo.

0.0.1

1 year ago