Use client-side templates names according to directory structure