Add multiple template directory feature.