Mark, ‘Custom functions’ are the workaround I’ve used. The downside: if you copy a page from one container to another, you have to copy those functions too.
That’s correct, custom functions are scoped at the container level. We’re working on a feature that will let you publish functions to marketplace. This way you can easily share functions between the containers (and other developers too).