support for relative template paths