refactor: use directory helper
feat: expose a pages local to templates