BH template engine