Nested page templates

Resolves #2