So, I was restructuring a Wordpress theme to use Pug and Jekyll in development and ran into a problem: Jekyll Pug <=1.5.2 only compiles .html files.
Luckily, this was an easy fix.
If you'd like to compile to PHP, simply add the following to your _config.yml
:
jekyll-pug:
php: true
Enjoy!