pugjs / pug-cli

Pug's CLI interface
MIT License
259 stars 63 forks source link

Support `require` function #52

Open KSXGitHub opened 7 years ago

KSXGitHub commented 7 years ago

I want to be able to use any Node.js module in a pug file

It would be really cool if I can compile this without having to pug.compile myself

- const foo = require('foo')
p foo("bar") = #{foo("bar")}
sgkul2000 commented 3 years ago

i agree