Phoenix.Template.module_to_template_root/3

Parsed documentation:
View on GitHub
Converts a module, without the suffix, to a template root.

## Examples

    iex> Phoenix.Template.module_to_template_root(MyApp.UserView, MyApp, "View")
    "user"

    iex> Phoenix.Template.module_to_template_root(MyApp.Admin.User, MyApp, "View")
    "admin/user"

    iex> Phoenix.Template.module_to_template_root(MyApp.Admin.User, MyApp.Admin, "View")
    "user"

    iex> Phoenix.Template.module_to_template_root(MyApp.View, MyApp, "View")
    ""

    iex> Phoenix.Template.module_to_template_root(MyApp.View, MyApp.View, "View")
    ""
Suggestions:
Please help! Open an issue on GitHub if this assessment is incorrect.