@web-alchemy/eleventy-plugin-pug

0.0.1 • Public • Published

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.

Package Sidebar

Install

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

Weekly Downloads

0

Version

0.0.1

License

none

Unpacked Size

2.64 kB

Total Files

3

Last publish

Collaborators

  • monochromer