Skip to content

Instantly share code, notes, and snippets.

@shankardevy
Last active August 18, 2017 05:25
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save shankardevy/bc8576c693decc30da1890669c0dd70b to your computer and use it in GitHub Desktop.
Save shankardevy/bc8576c693decc30da1890669c0dd70b to your computer and use it in GitHub Desktop.
defmodule MangoWeb.PageController do
use MangoWeb, :controller
alias Mango.Catalog
def index(conn, _params) do
seasonal_products = Catalog.list_seasonal_products
render conn, "index.html", seasonal_products: seasonal_products
end
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment