Skip to content

Instantly share code, notes, and snippets.

@Drew-S
Created May 23, 2018 16:03
Show Gist options
  • Save Drew-S/38d4104b9dc1870e99e562baf4ace677 to your computer and use it in GitHub Desktop.
Save Drew-S/38d4104b9dc1870e99e562baf4ace677 to your computer and use it in GitHub Desktop.
Relaxed plugin format (proposal)
const fs = require('fs')
const path = require('path')
module.exports = function() {
return {
pre_pug: function(pug, dir) {
return pug
},
post_pug: function(html, dir) {
return html
},
mixin: fs.readFileSync(path.join(__dirname, 'mixins.pug'))
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment