Closed mayacakmak closed 4 years ago
I looked into this a bit, it seems like we basically have two options.
Some IDEs, for instance, VS Code, also have extensions and plugins that will allow them to compile pug to html in real-time https://github.com/Jaheen/VSCode-Live-Pug-Compiler
I think that it probably makes the most sense to write a script to do the compilation like you suggested. That way we can easily test code locally before pushing it, and we also aren't restricted to a single IDE.
I created a script that does the compiling and setup a pull request with it #2
Codepen had a nice automatic compilation of .pug files into .html. Perhaps sure GitHub has some plugin that helps do that? If either we might want to create some sort of compilation script (possibly with instructions to install pug on computer) or we can also switch to editing HTML directly and remove the pug files.