Skip to content

Instantly share code, notes, and snippets.

What would you like to do?
2017-10-19 - Render PHP Files to HTML in Bulk through CLI
#!/bin/env bash
for f in $(find . -maxdepth 1 -name '*.php'); do
directory=$(dirname "${f}");
mkdir -p "../rendered/${directory}";
php -f "${f}" > "../rendered/${basename}.html";
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.