Created
May 23, 2018 16:03
-
-
Save Drew-S/38d4104b9dc1870e99e562baf4ace677 to your computer and use it in GitHub Desktop.
Relaxed plugin format (proposal)
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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