Use one custom page method when defining another

When you define various custom page methods as in the tutorial, is it possible to use one of the methods inside the next method’s definition?

Haven’t ever tested this, but I don’t see any reason why it should not work.

For future reference: It does work. It was just a mistake in my code.

Also: It is possible to add custom methods to $site (it is not mentioned in the docs).

Yes, it’s not in the docs, but also possible.