Add erb support to template handler