Parsed documentation:
View on GitHub
Renders a template.

It expects the view module, the template as a string, and a
set of assigns.

Notice this function returns the inner representation of a
template. If you want the encoded template as a result, use
`render_to_iodata/3` instead.

## Examples

    Phoenix.View.render(YourApp.UserView, "index.html", name: "John Doe")
    #=> {:safe, "Hello John Doe"}

## Assigns

Assigns are meant to be user data that will be available in templates.
However there are keys under assigns that are specially handled by
Phoenix, they are:

  * `:layout` - tells Phoenix to wrap the rendered result in the
    given layout. See next section.

## Layouts

Templates can be rendered within other templates using the `:layout`
option. `:layout` accepts a tuple of the form
`{LayoutModule, "template.extension"}`.

When a template is rendered, the layout template will have an `@inner`
assign containing the rendered contents of the sub-template. For HTML
templates, `@inner` will be always marked as safe.

    Phoenix.View.render(YourApp.UserView, "index.html",
                        layout: {YourApp.LayoutView, "app.html"})
    #=> {:safe, "<html><h1>Hello!</h1></html>"}
Please help! Open an issue on GitHub if this assessment is incorrect.