Skip to content

Instantly share code, notes, and snippets.

@shankardevy

shankardevy/category_view.ex Secret

Last active Aug 18, 2017
Embed
What would you like to do?
defmodule MangoWeb.CategoryView do
use MangoWeb, :view
def title_case(name) do
name
|> String.downcase
|> String.capitalize
end
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment