Closed grkblood13 closed 6 years ago
Hey, thanks for you issue. This sounds like a great feature. I'll implement this soon :)
@grkblood13 I am currently implementing this feature. Would you expect the output to be pug or html?
The output should be pug. The rendering engine will then handle converting that to html for the requester.
You can now use rcs.process.pug()
in v3.1.0
. If you have any issues, please let me know.
I can't seems to get the pug files to render. It keeps erroring out:
TypeError: Cannot read property 'val' of undefined
at /home/test/project/node_modules/rename-css-selectors/node_modules/rcs-core/dest/replace/pug.js:82:37
at Array.map (
Can you maybe reduce your pug file to reproduce this and open a new issue?
There might be some script
or style
tag in your pug file, which causes this bug.
Any chance this tool could get builtin support for pug templates?
https://pugjs.org/api/getting-started.html