Return hashes and use them as locals in templates.