Updated to properly render partials.

Had to add the file_extension and search_dir kwargs to the Renderer
init. Also, consolidated identical functions into a single mixed-in
free function.