Write page generation script.