fixed trim spaces of inner template
add user templates path config