Completed rendering script and scaffolding for page templates