PHP templating helper.