Add renderStaticPagesTo function which allows more control over filepaths
Support WAI 2.0