Add template path in func