add template dir with relative way
add template dir with relative way