added a renderSubpages method, will need to make this recursive
eventually

Signed-off-by: Chris Jones <chris@jonezy.org>