update template
output to new dir and auto-copy static files