support static generation - viewsDir option