Added support for additional template engines