base library to create directory templates