Accessing class objects revisions of a page or open a revision in wiki editor

Hi there

If one clicks a revision of a page, it open’s in view mode (using a dedicated uri “viewrev”). In some cases, I would like to see the values of object properties of a certain revision of the page or the velocity code of a page (where this page only contains the velocity code and no markup) that is only accessible opening the document in the wiki editor …

How can I achieve this?

Thank you!