Added template resolver to engine.php