Revert "Recode from PHP to Handlebars"

This reverts commit 249c56cf371b80ff92bbdc1a9afc306d1c21f6a9.