documentation for passing locals for rendering