Populate directories through templates