Template Creates a Engine object on the fly and sets the root directory to the dir where the passed template resides.