split template/data/static directories