Initial commit: there's still tons of base Phoenix boilerplate to remove, but the...
[tech-radar-editor.git] / web / controllers / radar_controller.ex
1 defmodule TechRadarEditor.RadarController do
2 use TechRadarEditor.Web, :controller
3
4 alias TechRadarEditor.RadarDataPoint
5
6 # http://www.cultivatehq.com/posts/how-to-set-different-layouts-in-phoenix/
7 def index(conn, _params) do
8 radar_data_points = Repo.all(RadarDataPoint)
9 render conn, "index.html", radar_data_points: radar_data_points, layout: {TechRadarEditor.LayoutView, "radar.html"}
10 end
11 end