Skip to content

web-alchemy/eleventy-plugin-pug

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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.

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Packages

No packages published