The crazy thing is that the Pages router looked to me to essentially be a React flavored version of the venerable Perl HTML::Mason library.
It offered embedded code that is used to generate static HTML server side. It had application routing based on the file directory structure of the repository. It had automatic code wrappers distributed across the directory structure.